summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-09-18 18:16:39 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-09-18 18:16:39 (GMT)
commitf61045fd151c9726c03384152bfac39753e2308f (patch)
treee5af0a2bb65073e2b25ff50608cc1088cdc386c7
parent107324cf7c7fd418f2f9d395894a40df758cc449 (diff)
downloadcpython-f61045fd151c9726c03384152bfac39753e2308f.zip
cpython-f61045fd151c9726c03384152bfac39753e2308f.tar.gz
cpython-f61045fd151c9726c03384152bfac39753e2308f.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) ........
-rw-r--r--Lib/test/test_subprocess.py2
-rw-r--r--Misc/NEWS2
2 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py
index 64fbe21..a23f934 100644
--- a/Lib/test/test_subprocess.py
+++ b/Lib/test/test_subprocess.py
@@ -535,7 +535,7 @@ class ProcessTestCase(BaseTestCase):
stderr=subprocess.PIPE)
# Windows raises IOError
except (IOError, OSError) as err:
- if err.errno != 2: # ignore "no such file"
+ if err.errno != errno.ENOENT: # ignore "no such file"
raise
def test_issue8780(self):
diff --git a/Misc/NEWS b/Misc/NEWS
index 2932280..f1fd78e 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -590,6 +590,8 @@ Build
Tests
-----
+- Issue #9894: Do not hardcode ENOENT in test_subprocess.
+
- Issue #9315: Added tests for the trace module. Patch by Eli Bendersky.
- Issue #7564: Skip test_ioctl if another process is attached to /dev/tty.