summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio/utils.py
diff options
context:
space:
mode:
authorKumar Aditya <kumaraditya@python.org>2024-06-23 13:08:50 (GMT)
committerGitHub <noreply@github.com>2024-06-23 13:08:50 (GMT)
commit9d2e1ea3862e5950d48b45ac57995a206e33f38b (patch)
tree3e0287e48b16fe56015cb8d725d05f268b392743 /Lib/test/test_asyncio/utils.py
parentb6fa8fe86a6f4d02c263682716a91285a94024fc (diff)
downloadcpython-9d2e1ea3862e5950d48b45ac57995a206e33f38b.zip
cpython-9d2e1ea3862e5950d48b45ac57995a206e33f38b.tar.gz
cpython-9d2e1ea3862e5950d48b45ac57995a206e33f38b.tar.bz2
GH-120804: Remove `PidfdChildWatcher`, `ThreadedChildWatcher` and `AbstractChildWatcher` from asyncio APIs (#120893)
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')