mirror of https://github.com/python/cpython
#11490: EACCES can also mean command not found
This commit is contained in:
parent
6b19e50e9b
commit
d79210a0e4
|
@ -554,7 +554,8 @@ class ProcessTestCase(BaseTestCase):
|
||||||
stderr=subprocess.PIPE)
|
stderr=subprocess.PIPE)
|
||||||
# Windows raises IOError
|
# Windows raises IOError
|
||||||
except (IOError, OSError) as err:
|
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
|
raise
|
||||||
|
|
||||||
def test_issue8780(self):
|
def test_issue8780(self):
|
||||||
|
|
|
@ -221,6 +221,9 @@ Build
|
||||||
Tests
|
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
|
- Issue #10822: Fix test_posix:test_getgroups failure under Solaris. Patch
|
||||||
by Ross Lagerwall.
|
by Ross Lagerwall.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue