Issue #16762: Fix some test_subprocess failures on NetBSD and OpenBSD: kill()

returns ESRCH for a zombie process, which is not POSIX-compliant.
parent 7128e073
...@@ -1206,6 +1206,8 @@ class POSIXProcessTestCase(BaseTestCase): ...@@ -1206,6 +1206,8 @@ class POSIXProcessTestCase(BaseTestCase):
getattr(p, method)(*args) getattr(p, method)(*args)
return p return p
@unittest.skipIf(sys.platform.startswith(('netbsd', 'openbsd')),
"Due to known OS bug (issue #16762)")
def _kill_dead_process(self, method, *args): def _kill_dead_process(self, method, *args):
# Do not inherit file handles from the parent. # Do not inherit file handles from the parent.
# It should fix failures on some platforms. # It should fix failures on some platforms.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment