summaryrefslogtreecommitdiff
path: root/Lib/test
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_subprocess.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py
index ce3e0c232b..d7db802576 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):