mirror of
https://github.com/python/cpython.git
synced 2025-07-19 01:05:26 +00:00
asyncio: Fix from Anthony Baire for CPython issue 19566 (replaces earlier fix).
This commit is contained in:
parent
be3c2fea35
commit
2bcae708d8
3 changed files with 60 additions and 42 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue