Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_subprocess.py @ 64808:b49aee38779b
Issue #9894: Do not hardcode ENOENT in test_subprocess.
(GNU/Hurd is not dead)
| author | Antoine Pitrou <solipsis@pitrou.net> |
|---|---|
| date | Sat, 18 Sep 2010 17:56:02 +0000 |
| parents | aa9c8e82c435 |
| children | 4981cf0a9ca4 |
line wrap: on
line diff
--- a/Lib/test/test_subprocess.py Sat Sep 18 04:42:41 2010 +0000 +++ b/Lib/test/test_subprocess.py Sat Sep 18 17:56:02 2010 +0000 @@ -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):
