bpo-35621: Fix tests when SafeChildWatcher is expected instead of ThreadedChildWatcher (GH-13754)

https://bugs.python.org/issue35621
This commit is contained in:
Andrew Svetlov 2019-06-03 01:45:54 +03:00 committed by Miss Islington (bot)
parent fb9423fd0a
commit c6789d6c85

View 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()