]> granicus.if.org Git - python/commitdiff
Issue #16762: Fix some test_subprocess failures on NetBSD and OpenBSD: kill()
authorCharles-François Natali <cf.natali@gmail.com>
Sat, 12 Jan 2013 15:52:20 +0000 (16:52 +0100)
committerCharles-François Natali <cf.natali@gmail.com>
Sat, 12 Jan 2013 15:52:20 +0000 (16:52 +0100)
returns ESRCH for a zombie process, which is not POSIX-compliant.

Lib/test/test_subprocess.py

index 75eb852cc97f7ad1b36bc25149921f6ab5ea42a3..921328f001afe21ea6f123a2a9c6a762aa2afc19 100644 (file)
@@ -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.