summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_subprocess.py
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2011-03-14 02:37:18 (GMT)
committerR David Murray <rdmurray@bitdance.com>2011-03-14 02:37:18 (GMT)
commitcdd5fc90137023c9d2de336531b281f31740358f (patch)
tree4f8c682e437f4718bad544626ece4ca2962db305 /Lib/test/test_subprocess.py
parentd4f016fb514d089d931b2dbca0bfa4e02cbab878 (diff)
downloadcpython-cdd5fc90137023c9d2de336531b281f31740358f.zip
cpython-cdd5fc90137023c9d2de336531b281f31740358f.tar.gz
cpython-cdd5fc90137023c9d2de336531b281f31740358f.tar.bz2
#11490: EACCES can also mean command not found
Diffstat (limited to 'Lib/test/test_subprocess.py')
-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 37dc245..04eb9b1 100644
--- a/Lib/test/test_subprocess.py
+++ b/Lib/test/test_subprocess.py
@@ -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):