diff options
-rw-r--r-- | Lib/test/test_subprocess.py | 2 | ||||
-rw-r--r-- | Misc/NEWS | 2 |
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): @@ -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. |