diff --git a/tests/conftest.py b/tests/conftest.py index 8e0cf546f..66d1ea7c9 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -114,7 +114,7 @@ def fail_test_on_unclosed_tasks(request: FixtureRequest): """ fail_count = request.session.testsfailed - loop = asyncio.get_event_loop() + loop = asyncio.get_running_loop() loop.set_debug(True) request.addfinalizer(