mirror of
https://github.com/python/cpython.git
synced 2026-06-13 22:54:50 -04:00
#11490: EACCES can also mean command not found
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user