diff --git a/tests/test_asyncio.py b/tests/test_asyncio.py index 11556789..ad4ae10d 100644 --- a/tests/test_asyncio.py +++ b/tests/test_asyncio.py @@ -9,4 +9,4 @@ def test_datetime_in_coroutine(): async def frozen_coroutine(): assert datetime.date.today() == datetime.date(1970, 1, 1) - asyncio.get_event_loop().run_until_complete(frozen_coroutine()) + asyncio.run(frozen_coroutine())