[Python-checkins] r84878 - in python/branches/py3k: Lib/test/test_subprocess.py Misc/NEWS
antoine.pitrou
python-checkins at python.org
Sat Sep 18 19:56:03 CEST 2010
Author: antoine.pitrou
Date: Sat Sep 18 19:56:02 2010
New Revision: 84878
Log:
Issue #9894: Do not hardcode ENOENT in test_subprocess.
(GNU/Hurd is not dead)
Modified:
python/branches/py3k/Lib/test/test_subprocess.py
python/branches/py3k/Misc/NEWS
Modified: python/branches/py3k/Lib/test/test_subprocess.py
==============================================================================
--- python/branches/py3k/Lib/test/test_subprocess.py (original)
+++ python/branches/py3k/Lib/test/test_subprocess.py Sat Sep 18 19:56:02 2010
@@ -530,7 +530,7 @@
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):
Modified: python/branches/py3k/Misc/NEWS
==============================================================================
--- python/branches/py3k/Misc/NEWS (original)
+++ python/branches/py3k/Misc/NEWS Sat Sep 18 19:56:02 2010
@@ -181,6 +181,8 @@
Tests
-----
+- Issue #9894: Do not hardcode ENOENT in test_subprocess.
+
- Issue #9315: Added tests for the trace module. Patch by Eli Bendersky.
- Issue #9323: Make test.regrtest.__file__ absolute, this was not always the
More information about the Python-checkins
mailing list