diff --git a/Lib/test/test_asyncio/test_subprocess.py b/Lib/test/test_asyncio/test_subprocess.py index 6499d5deef015d..d7f03e6dd0f4a9 100644 --- a/Lib/test/test_asyncio/test_subprocess.py +++ b/Lib/test/test_asyncio/test_subprocess.py @@ -879,8 +879,7 @@ def setUp(self): watcher = self._get_watcher() watcher.attach_loop(self.loop) - with warnings.catch_warnings(): - policy._watcher = watcher + policy._watcher = watcher def tearDown(self): super().tearDown()