summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-09-18 17:56:02 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-09-18 17:56:02 (GMT)
commit679e0f23280672cdb9144ddeb7022e248b0fdceb (patch)
treea4204ceae40eab1e108c8bd1ff1d930092f2d4dc /Lib
parentf2dec8d6f1f8816959503e45f4a653f56e6715c6 (diff)
downloadcpython-679e0f23280672cdb9144ddeb7022e248b0fdceb.zip
cpython-679e0f23280672cdb9144ddeb7022e248b0fdceb.tar.gz
cpython-679e0f23280672cdb9144ddeb7022e248b0fdceb.tar.bz2
Issue #9894: Do not hardcode ENOENT in test_subprocess.
(GNU/Hurd is not dead)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_subprocess.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py
index 68ffb33..22b6308 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_issue8780(self):