mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Issue #16762: Fix some test_subprocess failures on NetBSD and OpenBSD: kill()
returns ESRCH for a zombie process, which is not POSIX-compliant.
This commit is contained in:
commit
dbc744ac74
1 changed files with 2 additions and 0 deletions
|
@ -1360,6 +1360,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.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue