From: Charles-François Natali <cf.natali@gmail.com> 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: v2.7.4rc1~164^2~86 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ef2bd67e2364ef92dab03442c07864a3a5e90b85;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 38844888fd..69384ba0f4 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -892,6 +892,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.