From 4486d4f35f42e1873e32a6c74533da09ccf4e5bf Mon Sep 17 00:00:00 2001 From: Kumar Aditya Date: Fri, 21 Jun 2024 16:08:02 +0530 Subject: [PATCH] remove redundant catching of warning --- Lib/test/test_asyncio/test_subprocess.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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()