8000 Fix refleak in test_asyncio · python/cpython@93fde8c · GitHub
[go: up one dir, main page]

Skip to content

Commit 93fde8c

Browse files
committed
Fix refleak in test_asyncio
1 parent e7c98f0 commit 93fde8c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/test_asyncio/test_events.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,8 @@ def run():
365365

366366
f2 = self.loop.run_in_executor(None, run)
367367
f2.cancel()
368+
self.loop.run_until_complete(
369+
self.loop.shutdown_default_executor())
368370
self.loop.close()
369371
self.loop.call_soon = patched_call_soon
370372
self.loop.call_soon_threadsafe = patched_call_soon

0 commit comments

Comments
 (0)
0