aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_asyncio/test_subprocess.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_asyncio/test_subprocess.py')
-rw-r--r--Lib/test/test_asyncio/test_subprocess.py29
1 files changed, 0 insertions, 29 deletions
diff --git a/Lib/test/test_asyncio/test_subprocess.py b/Lib/test/test_asyncio/test_subprocess.py
index cf1a1985338..27ae766a194 100644
--- a/Lib/test/test_asyncio/test_subprocess.py
+++ b/Lib/test/test_asyncio/test_subprocess.py
@@ -631,15 +631,6 @@ class SubprocessMixin:
# the transport was not notified yet
self.assertFalse(killed)
- # Unlike SafeChildWatcher, FastChildWatcher does not pop the
- # callbacks if waitpid() is called elsewhere. Let's clear them
- # manually to avoid a warning when the watcher is detached.
- if (sys.platform != 'win32' and
- isinstance(self, SubprocessFastWatcherTests)):
- with warnings.catch_warnings():
- warnings.simplefilter('ignore', DeprecationWarning)
- asyncio.get_child_watcher()._callbacks.clear()
-
async def _test_popen_error(self, stdin):
if sys.platform == 'win32':
target = 'asyncio.windows_utils.Popen'
@@ -908,26 +899,6 @@ if sys.platform != 'win32':
def _get_watcher(self):
return unix_events.ThreadedChildWatcher()
- class SubprocessSafeWatcherTests(SubprocessWatcherMixin,
- test_utils.TestCase):
-
- def _get_watcher(self):
- with self.assertWarns(DeprecationWarning):
- return unix_events.SafeChildWatcher()
-
- class MultiLoopChildWatcherTests(test_utils.TestCase):
-
- def test_warns(self):
- with self.assertWarns(DeprecationWarning):
- unix_events.MultiLoopChildWatcher()
-
- class SubprocessFastWatcherTests(SubprocessWatcherMixin,
- test_utils.TestCase):
-
- def _get_watcher(self):
- with self.assertWarns(DeprecationWarning):
- return unix_events.FastChildWatcher()
-
@unittest.skipUnless(
unix_events.can_use_pidfd(),
"operating system does not support pidfds",