Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 53221e3

Browse files
committed
Issue #16762: Fix some test_subprocess failures on NetBSD and OpenBSD: kill()
returns ESRCH for a zombie process, which is not POSIX-compliant.
1 parent 7128e07 commit 53221e3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/test/test_subprocess.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1206,6 +1206,8 @@ def _kill_process(self, method, *args):
12061206
getattr(p, method)(*args)
12071207
return p
12081208

1209+
@unittest.skipIf(sys.platform.startswith(('netbsd', 'openbsd')),
1210+
"Due to known OS bug (issue #16762)")
12091211
def _kill_dead_process(self, method, *args):
12101212
# Do not inherit file handles from the parent.
12111213
# It should fix failures on some platforms.

0 commit comments

Comments
 (0)