2025-09-05 15:37:09 +00:00
|
|
|
Index: i3ipc-python-2.2.1/test/aio/ipctest.py
|
|
|
|
|
===================================================================
|
|
|
|
|
--- i3ipc-python-2.2.1.orig/test/aio/ipctest.py
|
|
|
|
|
+++ i3ipc-python-2.2.1/test/aio/ipctest.py
|
2025-09-05 15:52:21 +00:00
|
|
|
@@ -1,5 +1,9 @@
|
2025-09-05 15:46:08 +00:00
|
|
|
from subprocess import Popen
|
|
|
|
|
import pytest
|
2025-09-05 15:52:21 +00:00
|
|
|
+try:
|
|
|
|
|
+ from pytest_asyncio import fixture
|
|
|
|
|
+except ImportError:
|
2025-09-05 15:56:30 +00:00
|
|
|
+ from pytest import fixture
|
2025-09-05 15:46:08 +00:00
|
|
|
|
|
|
|
|
from i3ipc.aio import Connection
|
|
|
|
|
from i3ipc import CommandReply
|
2025-09-05 15:52:21 +00:00
|
|
|
@@ -15,11 +19,11 @@ class IpcTest:
|
|
|
|
|
timeout_thread = None
|
|
|
|
|
i3_conn = None
|
|
|
|
|
|
|
|
|
|
- @pytest.fixture(scope='class')
|
|
|
|
|
+ @fixture(scope='class')
|
2025-09-05 15:43:36 +00:00
|
|
|
def event_loop(self):
|
2025-09-05 15:37:09 +00:00
|
|
|
return asyncio.get_event_loop()
|
|
|
|
|
|
2025-09-05 15:43:36 +00:00
|
|
|
- @pytest.fixture(scope='class')
|
2025-09-05 15:52:21 +00:00
|
|
|
+ @fixture(scope='class')
|
2025-09-05 15:43:36 +00:00
|
|
|
async def i3(self):
|
2025-09-05 15:37:09 +00:00
|
|
|
process = Popen(['i3', '-c', 'test/i3.config'])
|
|
|
|
|
# wait for i3 to start up
|