mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Issue #9894: Do not hardcode ENOENT in test_subprocess.
(GNU/Hurd is not dead)
This commit is contained in:
parent
f2dec8d6f1
commit
679e0f2328
2 changed files with 3 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue