mirror of
https://github.com/python/cpython.git
synced 2025-08-19 00:00:48 +00:00
#11490: EACCES can also mean command not found
This commit is contained in:
parent
d4f016fb51
commit
cdd5fc9013
2 changed files with 5 additions and 1 deletions
|
@ -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"
|
||||
# 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):
|
||||
|
|
|
@ -251,6 +251,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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue