diff --git a/Lib/test/test_asyncio/test_subprocess.py b/Lib/test/test_asyncio/test_subprocess.py index 88bb6eee386..c6852b80fe5 100644 --- a/Lib/test/test_asyncio/test_subprocess.py +++ b/Lib/test/test_asyncio/test_subprocess.py @@ -460,10 +460,9 @@ class SubprocessMixin: test_utils.run_briefly(self.loop) def test_close_kill_running(self): - if sys.platform != "win32": - if isinstance(asyncio.get_child_watcher(), - asyncio.MultiLoopChildWatcher): - self.skipTest("Temporary skip until bpo-38323 is fixed") + if (sys.platform != "win32" and + self.Watcher == asyncio.MultiLoopChildWatcher): + self.skipTest("Temporary skip until bpo-38323 is fixed") async def kill_running(): create = self.loop.subprocess_exec(asyncio.SubprocessProtocol,