summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_asyncio/utils.py')
-rw-r--r--Lib/test/test_asyncio/utils.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/Lib/test/test_asyncio/utils.py b/Lib/test/test_asyncio/utils.py
index 3fe2ecd..dbb8d27 100644
--- a/Lib/test/test_asyncio/utils.py
+++ b/Lib/test/test_asyncio/utils.py
@@ -547,23 +547,6 @@ class TestCase(unittest.TestCase):
loop._default_executor.shutdown(wait=True)
loop.close()
- policy = support.maybe_get_event_loop_policy()
- if policy is not None:
- try:
- watcher = policy._watcher
- except AttributeError:
- # watcher is not implemented by EventLoopPolicy, e.g. Windows
- pass
- else:
- if isinstance(watcher, asyncio.ThreadedChildWatcher):
- # Wait for subprocess to finish, but not forever
- for thread in list(watcher._threads.values()):
- thread.join(timeout=support.SHORT_TIMEOUT)
- if thread.is_alive():
- raise RuntimeError(f"thread {thread} still alive: "
- "subprocess still running")
-
-
def set_event_loop(self, loop, *, cleanup=True):
if loop is None:
raise AssertionError('loop is None')