diff options
author | R David Murray <rdmurray@bitdance.com> | 2011-03-14 02:26:53 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2011-03-14 02:26:53 (GMT) |
commit | 384069c2e8f2d06d0b6b36955032999307a17775 (patch) | |
tree | 6a808054d5058729ab3d8b385fe29faa90892bb6 /Lib/test/test_subprocess.py | |
parent | 9bd3bbcfe8f41509a0d60691000bd21e5338378f (diff) | |
parent | d79210a0e412e6161a2df2645dc3d68e5f7fa5a8 (diff) | |
download | cpython-384069c2e8f2d06d0b6b36955032999307a17775.zip cpython-384069c2e8f2d06d0b6b36955032999307a17775.tar.gz cpython-384069c2e8f2d06d0b6b36955032999307a17775.tar.bz2 |
Merge fix for #11490 from 3.1.
Diffstat (limited to 'Lib/test/test_subprocess.py')
-rw-r--r-- | Lib/test/test_subprocess.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index 4b58308..f1b49d5 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): |