Skip to content

Commit 50ab626

Browse files
authored
Update Lib/test/test_asyncio/test_tasks.py
1 parent 89abf3b commit 50ab626

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_asyncio/test_tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2499,7 +2499,7 @@ def __str__(self):
24992499
initial_refcount = sys.getrefcount(obj)
25002500

25012501
coro = coroutine_function()
2502-
with contextlib.closing(asyncio.EventLoop()) as loop:
2502+
with contextlib.closing(asyncio.new_event_loop()) as loop:
25032503
task = asyncio.Task.__new__(asyncio.Task)
25042504

25052505
for _ in range(5):

0 commit comments

Comments
 (0)