We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11a247d commit bfbf04eCopy full SHA for bfbf04e
Lib/test/test_asyncio/test_events.py
@@ -2735,13 +2735,16 @@ def setUp(self):
2735
self.loop = asyncio.new_event_loop()
2736
asyncio.set_event_loop(self.loop)
2737
2738
- watcher = asyncio.SafeChildWatcher()
2739
- watcher.attach_loop(self.loop)
2740
- asyncio.set_child_watcher(watcher)
+ if sys.platform != 'win32':
+ watcher = asyncio.SafeChildWatcher()
+ watcher.attach_loop(self.loop)
2741
+ asyncio.set_child_watcher(watcher)
2742
2743
def tearDown(self):
2744
try:
- asyncio.set_child_watcher(None)
2745
2746
+ asyncio.set_child_watcher(None)
2747
+
2748
super().tearDown()
2749
finally:
2750
self.loop.close()
0 commit comments