From: Charles-François Natali Date: Sat, 12 Jan 2013 15:52:20 +0000 (+0100) Subject: Issue #16762: Fix some test_subprocess failures on NetBSD and OpenBSD: kill() X-Git-Tag: v3.3.1rc1~372^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=53221e371d359c6df410ddd653350dd345ae3be5;p=python Issue #16762: Fix some test_subprocess failures on NetBSD and OpenBSD: kill() returns ESRCH for a zombie process, which is not POSIX-compliant. --- diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index 75eb852cc9..921328f001 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -1206,6 +1206,8 @@ class POSIXProcessTestCase(BaseTestCase): getattr(p, method)(*args) return p + @unittest.skipIf(sys.platform.startswith(('netbsd', 'openbsd')), + "Due to known OS bug (issue #16762)") def _kill_dead_process(self, method, *args): # Do not inherit file handles from the parent. # It should fix failures on some platforms.