Check self.Watcher instead of asyncio.get_child_watcher()

Co-authored-by: Chris Jerdonek <chris.jerdonek@gmail.com>
This commit is contained in:
Kyle Stanley 2020-05-09 01:49:12 -04:00
parent b210564782
commit c42449f035
1 changed files with 3 additions and 4 deletions

View File

@ -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,