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 a8ffeee commit bda45c8Copy full SHA for bda45c8
Lib/test/test_asyncio/utils.py
@@ -558,7 +558,8 @@ def close_loop(self, loop):
558
else:
559
if isinstance(watcher, asyncio.ThreadedChildWatcher):
560
watcher._join_threads(timeout=support.SHORT_TIMEOUT)
561
- threads = watcher._threads
+ threads = {key: thread for key, thread in watcher._threads.items()
562
+ if thread.is_alive() and not thread.daemon}
563
if threads:
564
self.fail(f"watcher still has running threads: "
565
f"{threads}")
0 commit comments