diff Lib/test/test_subprocess.py @ 70575:22457ac2c2df 3.2

Close #12230: Mac OS X Tiger (10.4) has a kernel bug: sometimes, the file descriptor of a pipe closed in the parent process is valid in the child process according to fstat(), but the mode of the file descriptor is invalid, and read or write raise an error. Add also requires_mac_ver() decorator to test.support.
author Victor Stinner <victor.stinner@haypocalc.com>
date Wed, 01 Jun 2011 13:13:04 +0200
parents 0f2714e49583
children b5963fceddad 566c42b0e750
line wrap: on
line diff
--- a/Lib/test/test_subprocess.py	Tue May 31 21:38:49 2011 -0500
+++ b/Lib/test/test_subprocess.py	Wed Jun 01 13:13:04 2011 +0200
@@ -1185,6 +1185,11 @@
                          "Some fds were left open")
         self.assertIn(1, remaining_fds, "Subprocess failed")
 
+    # Mac OS X Tiger (10.4) has a kernel bug: sometimes, the file
+    # descriptor of a pipe closed in the parent process is valid in the
+    # child process according to fstat(), but the mode of the file
+    # descriptor is invalid, and read or write raise an error.
+    @support.requires_mac_ver(10, 5)
     def test_pass_fds(self):
         fd_status = support.findfile("fd_status.py", subdir="subprocessdata")