at master 790 B view raw
1diff --git a/test/aio/ipctest.py b/test/aio/ipctest.py 2index 88e4cda..3d0fd9c 100644 3--- a/test/aio/ipctest.py 4+++ b/test/aio/ipctest.py 5@@ -1,5 +1,6 @@ 6 from subprocess import Popen 7 import pytest 8+import pytest_asyncio 9 10 from i3ipc.aio import Connection 11 from i3ipc import CommandReply 12@@ -19,7 +20,7 @@ class IpcTest: 13 def event_loop(self): 14 return asyncio.get_event_loop() 15 16- @pytest.fixture(scope='class') 17+ @pytest_asyncio.fixture(scope='class', loop_scope='class') 18 async def i3(self): 19 process = Popen(['i3', '-c', 'test/i3.config']) 20 # wait for i3 to start up 21diff --git a/pytest.ini b/pytest.ini 22index 1ea6b80..788bdac 100644 23--- a/pytest.ini 24+++ b/pytest.ini 25@@ -1,2 +1,3 @@ 26 [pytest] 27 timeout = 5 28+asyncio_default_test_loop_scope = class