diff options
author | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2009-07-09 22:37:22 (GMT) |
---|---|---|
committer | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2009-07-09 22:37:22 (GMT) |
commit | ce32eb7406baf7a51f7764a7c6ce245dd99dabe9 (patch) | |
tree | df9d9312bf0cbf7d2dd962e4b8d2299640af24b5 /Lib/test/test_subprocess.py | |
parent | b0c828ae4a18591b135357c47b1baeecb02f3a5e (diff) | |
download | cpython-ce32eb7406baf7a51f7764a7c6ce245dd99dabe9.zip cpython-ce32eb7406baf7a51f7764a7c6ce245dd99dabe9.tar.gz cpython-ce32eb7406baf7a51f7764a7c6ce245dd99dabe9.tar.bz2 |
#6416: Fix compilation of the select module on Windows, as well as test_subprocess:
PIPE_BUF is not defined on Windows, and probably has no meaning there.
Anyway the subprocess module uses another way to perform non-blocking reads (with a thread)
Diffstat (limited to 'Lib/test/test_subprocess.py')
-rw-r--r-- | Lib/test/test_subprocess.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index 5add023..1693c6b 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -769,7 +769,7 @@ class ProcessTestCase(unittest.TestCase): unit_tests = [ProcessTestCase] -if subprocess._has_poll: +if getattr(subprocess, '_has_poll', False): class ProcessTestCaseNoPoll(ProcessTestCase): def setUp(self): subprocess._has_poll = False |