We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89abf3b commit 50ab626Copy full SHA for 50ab626
1 file changed
Lib/test/test_asyncio/test_tasks.py
@@ -2499,7 +2499,7 @@ def __str__(self):
2499
initial_refcount = sys.getrefcount(obj)
2500
2501
coro = coroutine_function()
2502
- with contextlib.closing(asyncio.EventLoop()) as loop:
+ with contextlib.closing(asyncio.new_event_loop()) as loop:
2503
task = asyncio.Task.__new__(asyncio.Task)
2504
2505
for _ in range(5):
0 commit comments