Skip to content

Commit dd61f77

Browse files
committed
set trio loop policy for tests
1 parent 80b186c commit dd61f77

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/conftest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,5 @@ def sync_loop():
4646
def pytest_pyfunc_call(pyfuncitem):
4747
if inspect.iscoroutinefunction(pyfuncitem.obj):
4848
pyfuncitem.obj = pytest.mark.trio(pyfuncitem.obj)
49+
50+
asyncio.set_event_loop_policy(trio_asyncio.TrioPolicy())

0 commit comments

Comments
 (0)