aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_asyncio/test_events.py
diff options
context:
space:
mode:
authorKumar Aditya <kumaraditya@python.org>2024-06-21 10:23:10 +0530
committerGitHub <noreply@github.com>2024-06-21 10:23:10 +0530
commit733dac01b0dc3047efc9027dba177d7116e47c50 (patch)
tree37c9cff3e1a204b8e1d93887594109afe768d059 /Lib/test/test_asyncio/test_events.py
parenta2f6f7dd26128b834c6e66fe1ceac3ac751143f5 (diff)
downloadcpython-733dac01b0dc3047efc9027dba177d7116e47c50.tar.gz
cpython-733dac01b0dc3047efc9027dba177d7116e47c50.zip
GH-120804: Remove SafeChildWatcher, FastChildWatcher and MultiLoopChildWatcher from asyncio (#120805)
Remove SafeChildWatcher, FastChildWatcher and MultiLoopChildWatcher from asyncio. These child watchers have been deprecated since Python 3.12. The tests are also removed and some more tests will be added after the rewrite of child watchers.
Diffstat (limited to 'Lib/test/test_asyncio/test_events.py')
-rw-r--r--Lib/test/test_asyncio/test_events.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py
index 88c85a36b5d..06eb4d3841a 100644
--- a/Lib/test/test_asyncio/test_events.py
+++ b/Lib/test/test_asyncio/test_events.py
@@ -2214,7 +2214,7 @@ else:
super().setUp()
with warnings.catch_warnings():
warnings.simplefilter('ignore', DeprecationWarning)
- watcher = asyncio.SafeChildWatcher()
+ watcher = asyncio.ThreadedChildWatcher()
watcher.attach_loop(self.loop)
asyncio.set_child_watcher(watcher)
@@ -2833,13 +2833,6 @@ class GetEventLoopTestsMixin:
self.loop = asyncio.new_event_loop()
asyncio.set_event_loop(self.loop)
- if sys.platform != 'win32':
- with warnings.catch_warnings():
- warnings.simplefilter('ignore', DeprecationWarning)
- watcher = asyncio.SafeChildWatcher()
- watcher.attach_loop(self.loop)
- asyncio.set_child_watcher(watcher)
-
def tearDown(self):
try:
if sys.platform != 'win32':