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.2.4rc1~227 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53221e371d359c6df410ddd653350dd345ae3be5;p=thirdparty%2FPython%2Fcpython.git 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 75eb852cc97f..921328f001af 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.