summaryrefslogtreecommitdiff
path: root/Lib/test/test_subprocess.py
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2011-03-13 22:31:35 -0400
committerR David Murray <rdmurray@bitdance.com>2011-03-13 22:31:35 -0400
commitdcd79a2d159417ce48336b6bc2bdb4da03ad1c1f (patch)
tree5bc9b43d2c0ca34bb0b635121db6a7b255e0568e /Lib/test/test_subprocess.py
parentaccd1c040f472f613cdac8fbf78e75794819acfc (diff)
parent384069c2e8f2d06d0b6b36955032999307a17775 (diff)
downloadcpython-git-dcd79a2d159417ce48336b6bc2bdb4da03ad1c1f.tar.gz
Merge fix for #11490 from 3.2.
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 d91a4a6987..435ca194f1 100644
--- a/Lib/test/test_subprocess.py
+++ b/Lib/test/test_subprocess.py
@@ -587,7 +587,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_issue8780(self):