cpython: 0a19b3278fa2 (original) (raw)
Mercurial > cpython
changeset 68435:0a19b3278fa2 2.7
#11490: EACCES can also mean command not found [#11490]
R David Murray rdmurray@bitdance.com | |
---|---|
date | Sun, 13 Mar 2011 22:37:18 -0400 |
parents | 350b956b3600 |
children | 095f4a1a62ea |
files | Lib/test/test_subprocess.py Misc/NEWS |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-)[+] [-] Lib/test/test_subprocess.py 3 Misc/NEWS 3 |
line wrap: on
line diff
--- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -573,7 +573,8 @@ class ProcessTestCase(BaseTestCase): subprocess.Popen(['nonexisting_i_hope'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
if c.exception.errno != errno.ENOENT: # ignore "no such file"[](#l1.7)
# ignore errors that indicate the command was not found[](#l1.8)
if c.exception.errno not in (errno.ENOENT, errno.EACCES):[](#l1.9) raise c.exception[](#l1.10)
def test_handles_closed_on_exception(self):
--- a/Misc/NEWS +++ b/Misc/NEWS @@ -251,6 +251,9 @@ Build Tests ----- +- Issue #11490: test_subprocess:test_leaking_fds_on_error no longer gives a