diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-09-18 18:15:33 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-09-18 18:15:33 (GMT) |
commit | 767cbc41b44b9f590c6c13e63749ed24de9d7fa3 (patch) | |
tree | d772c135aaf684aae47ba7ac7d07421c96b96fb5 /Lib/test/test_subprocess.py | |
parent | c3937f569bd2fa2abb2942b9d58deb15195177c8 (diff) | |
download | cpython-767cbc41b44b9f590c6c13e63749ed24de9d7fa3.zip cpython-767cbc41b44b9f590c6c13e63749ed24de9d7fa3.tar.gz cpython-767cbc41b44b9f590c6c13e63749ed24de9d7fa3.tar.bz2 |
Merged revisions 84878 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r84878 | antoine.pitrou | 2010-09-18 19:56:02 +0200 (sam., 18 sept. 2010) | 5 lines
Issue #9894: Do not hardcode ENOENT in test_subprocess.
(GNU/Hurd is not dead)
........
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 bce7b0b..d056ac3 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -530,7 +530,7 @@ class ProcessTestCase(BaseTestCase): subprocess.Popen(['nonexisting_i_hope'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) - if c.exception.errno != 2: # ignore "no such file" + if c.exception.errno != errno.ENOENT: # ignore "no such file" raise c.exception def test_handles_closed_on_exception(self): |