diff options
author | Kumar Aditya <kumaraditya@python.org> | 2024-06-21 10:23:10 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-21 10:23:10 +0530 |
commit | 733dac01b0dc3047efc9027dba177d7116e47c50 (patch) | |
tree | 37c9cff3e1a204b8e1d93887594109afe768d059 /Lib/test/test_asyncio/test_events.py | |
parent | a2f6f7dd26128b834c6e66fe1ceac3ac751143f5 (diff) | |
download | cpython-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.py | 9 |
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': |