From: Andrew Svetlov Date: Sun, 2 Jun 2019 22:45:54 +0000 (+0300) Subject: bpo-35621: Fix tests when SafeChildWatcher is expected instead of ThreadedChildWatche... X-Git-Tag: v3.8.0b1~45 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c6789d6c85a290a35f3839efb52a3d34536dcebe;p=thirdparty%2FPython%2Fcpython.git bpo-35621: Fix tests when SafeChildWatcher is expected instead of ThreadedChildWatcher (GH-13754) https://bugs.python.org/issue35621 --- diff --git a/Lib/test/test_asyncio/test_unix_events.py b/Lib/test/test_asyncio/test_unix_events.py index f7f992fcea49..462a8b3c7859 100644 --- a/Lib/test/test_asyncio/test_unix_events.py +++ b/Lib/test/test_asyncio/test_unix_events.py @@ -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()