Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2dec8d commit 679e0f2Copy full SHA for 679e0f2
2 files changed
Lib/test/test_subprocess.py
@@ -530,7 +530,7 @@ def test_leaking_fds_on_error(self):
530
subprocess.Popen(['nonexisting_i_hope'],
531
stdout=subprocess.PIPE,
532
stderr=subprocess.PIPE)
533
- if c.exception.errno != 2: # ignore "no such file"
+ if c.exception.errno != errno.ENOENT: # ignore "no such file"
534
raise c.exception
535
536
def test_issue8780(self):
Misc/NEWS
@@ -181,6 +181,8 @@ Tools/Demos
181
Tests
182
-----
183
184
+- Issue #9894: Do not hardcode ENOENT in test_subprocess.
185
+
186
- Issue #9315: Added tests for the trace module. Patch by Eli Bendersky.
187
188
- Issue #9323: Make test.regrtest.__file__ absolute, this was not always the
0 commit comments