diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-06-01 11:13:04 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-06-01 11:13:04 (GMT) |
commit | 88701e27e90c0b70e2b22b06ad8bbfa231cf99dc (patch) | |
tree | 6edbe65769104cd543ac5ad1507acfda707eee9c /Lib/test/test_subprocess.py | |
parent | fdb2d909a47dde62ef617bf4c52518325c2c48e7 (diff) | |
download | cpython-88701e27e90c0b70e2b22b06ad8bbfa231cf99dc.zip cpython-88701e27e90c0b70e2b22b06ad8bbfa231cf99dc.tar.gz cpython-88701e27e90c0b70e2b22b06ad8bbfa231cf99dc.tar.bz2 |
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.
Diffstat (limited to 'Lib/test/test_subprocess.py')
-rw-r--r-- | Lib/test/test_subprocess.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index 9d66659..e6e8b3a 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -1185,6 +1185,11 @@ class POSIXProcessTestCase(BaseTestCase): "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") |