diff options
author | Guido van Rossum <guido@dropbox.com> | 2013-11-13 23:50:08 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@dropbox.com> | 2013-11-13 23:50:08 (GMT) |
commit | 2bcae708d8775f40a0c9b18eb28cb60b54f6cdc3 (patch) | |
tree | 60f2b652fac98ecf907faaec132c19ac3bc9e72f /Lib/test/test_asyncio/test_events.py | |
parent | be3c2fea35de9bbdd5e3c9328fa413ed04ba7d6b (diff) | |
download | cpython-2bcae708d8775f40a0c9b18eb28cb60b54f6cdc3.zip cpython-2bcae708d8775f40a0c9b18eb28cb60b54f6cdc3.tar.gz cpython-2bcae708d8775f40a0c9b18eb28cb60b54f6cdc3.tar.bz2 |
asyncio: Fix from Anthony Baire for CPython issue 19566 (replaces earlier fix).
Diffstat (limited to 'Lib/test/test_asyncio/test_events.py')
-rw-r--r-- | Lib/test/test_asyncio/test_events.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py index 00bd408..7b9839c 100644 --- a/Lib/test/test_asyncio/test_events.py +++ b/Lib/test/test_asyncio/test_events.py @@ -1311,7 +1311,9 @@ else: class UnixEventLoopTestsMixin(EventLoopTestsMixin): def setUp(self): super().setUp() - events.set_child_watcher(unix_events.SafeChildWatcher(self.loop)) + watcher = unix_events.SafeChildWatcher() + watcher.attach_loop(self.loop) + events.set_child_watcher(watcher) def tearDown(self): events.set_child_watcher(None) |