(original) (raw)
changeset: 68435:0a19b3278fa2 branch: 2.7 parent: 68389:350b956b3600 user: R David Murray rdmurray@bitdance.com date: Sun Mar 13 22:37:18 2011 -0400 files: Lib/test/test_subprocess.py Misc/NEWS description: #11490: EACCES can also mean command not found diff -r 350b956b3600 -r 0a19b3278fa2 Lib/test/test_subprocess.py --- a/Lib/test/test_subprocess.py Fri Mar 11 23:46:26 2011 +0100 +++ b/Lib/test/test_subprocess.py Sun Mar 13 22:37:18 2011 -0400 @@ -573,7 +573,8 @@ subprocess.Popen(['nonexisting_i_hope'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) - if c.exception.errno != errno.ENOENT: # ignore "no such file" + # ignore errors that indicate the command was not found + if c.exception.errno not in (errno.ENOENT, errno.EACCES): raise c.exception def test_handles_closed_on_exception(self): diff -r 350b956b3600 -r 0a19b3278fa2 Misc/NEWS --- a/Misc/NEWS Fri Mar 11 23:46:26 2011 +0100 +++ b/Misc/NEWS Sun Mar 13 22:37:18 2011 -0400 @@ -251,6 +251,9 @@ Tests ----- +- Issue #11490: test_subprocess:test_leaking_fds_on_error no longer gives a + false positive if the last directory in the path is inaccessible. + - Issue #10822: Fix test_posix:test_getgroups failure under Solaris. Patch by Ross Lagerwall. /rdmurray@bitdance.com