[Python-checkins] cpython (merge 3.2 -> 3.3): Issue #16762: Fix some test_subprocess failures on NetBSD and OpenBSD: kill()

charles-francois.natali python-checkins at python.org
Sat Jan 12 16:56:27 CET 2013


http://hg.python.org/cpython/rev/a3f0414af55b
changeset:   81456:a3f0414af55b
branch:      3.3
parent:      81452:bbfc8f62cb67
parent:      81455:58ce6ac61ada
user:        Charles-François Natali <cf.natali at gmail.com>
date:        Sat Jan 12 16:54:45 2013 +0100
summary:
  Issue #16762: Fix some test_subprocess failures on NetBSD and OpenBSD: kill()
returns ESRCH for a zombie process, which is not POSIX-compliant.

files:
  Lib/test/test_subprocess.py |  2 ++
  1 files changed, 2 insertions(+), 0 deletions(-)


diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py
--- a/Lib/test/test_subprocess.py
+++ b/Lib/test/test_subprocess.py
@@ -1360,6 +1360,8 @@
         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.

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list