]> granicus.if.org Git - python/commitdiff
bpo-35621: Fix tests when SafeChildWatcher is expected instead of ThreadedChildWatche...
authorAndrew Svetlov <andrew.svetlov@gmail.com>
Sun, 2 Jun 2019 22:45:54 +0000 (01:45 +0300)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 2 Jun 2019 22:45:54 +0000 (15:45 -0700)
https://bugs.python.org/issue35621

Lib/test/test_asyncio/test_unix_events.py

index f7f992fcea49f9bec747311a0772f563c14ccfeb..462a8b3c78591750829c93707fd9bf7c25e37040 100644 (file)
@@ -1836,6 +1836,7 @@ class PolicyTests(unittest.TestCase):
             policy.get_event_loop().close()
 
         policy = self.create_policy()
+        policy.set_child_watcher(asyncio.SafeChildWatcher())
 
         th = threading.Thread(target=f)
         th.start()