From: R David Murray Date: Mon, 14 Mar 2011 02:13:09 +0000 (-0400) Subject: #11490: EACCES can also mean command not found X-Git-Tag: v3.2.1b1~314^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d79210a0e412e6161a2df2645dc3d68e5f7fa5a8;p=thirdparty%2FPython%2Fcpython.git #11490: EACCES can also mean command not found --- diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index ce3e0c232b38..d7db802576c3 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -554,7 +554,8 @@ class ProcessTestCase(BaseTestCase): stderr=subprocess.PIPE) # Windows raises IOError except (IOError, OSError) as err: - if err.errno != errno.ENOENT: # ignore "no such file" + # ignore errors that indicate the command was not found + if err.errno not in (errno.ENOENT, errno.EACCES): raise def test_issue8780(self): diff --git a/Misc/NEWS b/Misc/NEWS index df2aa4beeb80..2b099783dbaf 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -221,6 +221,9 @@ Build 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.