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 9012fa7 commit a9f5edbCopy full SHA for a9f5edb
Lib/test/test_asyncio/test_subprocess.py
@@ -901,9 +901,14 @@ def test_watcher_implementation(self):
901
class SubprocessThreadedWatcherTests(SubprocessWatcherMixin,
902
test_utils.TestCase):
903
def setUp(self):
904
+ self._original_can_use_pidfd = unix_events.can_use_pidfd
905
# Force the use of the threaded child watcher
906
unix_events.can_use_pidfd = mock.Mock(return_value=False)
907
super().setUp()
908
+
909
+ def tearDown(self):
910
+ unix_events.can_use_pidfd = self._original_can_use_pidfd
911
+ return super().tearDown()
912
913
@unittest.skipUnless(
914
unix_events.can_use_pidfd(),
0 commit comments