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 4cc4f91 commit 0648d1fCopy full SHA for 0648d1f
uvloop/_testbase.py
@@ -13,6 +13,7 @@
13
import select
14
import socket
15
import ssl
16
+import sys
17
import tempfile
18
import threading
19
import time
@@ -313,12 +314,14 @@ class AIOTestCase(BaseTestCase):
313
314
def setUp(self):
315
super().setUp()
316
- watcher = asyncio.SafeChildWatcher()
317
- watcher.attach_loop(self.loop)
318
- asyncio.set_child_watcher(watcher)
+ if sys.version_info < (3, 12):
+ watcher = asyncio.SafeChildWatcher()
319
+ watcher.attach_loop(self.loop)
320
+ asyncio.set_child_watcher(watcher)
321
322
def tearDown(self):
- asyncio.set_child_watcher(None)
323
324
+ asyncio.set_child_watcher(None)
325
super().tearDown()
326
327
def new_loop(self):
0 commit comments