Kaydet (Commit) 679e0f23 authored tarafından Antoine Pitrou's avatar Antoine Pitrou

Issue #9894: Do not hardcode ENOENT in test_subprocess.

(GNU/Hurd is not dead)
üst f2dec8d6
......@@ -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):
......
......@@ -181,6 +181,8 @@ Tools/Demos
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment