diff options
| author | R David Murray <rdmurray@bitdance.com> | 2011-03-14 02:13:09 (GMT) | 
|---|---|---|
| committer | R David Murray <rdmurray@bitdance.com> | 2011-03-14 02:13:09 (GMT) | 
| commit | d79210a0e412e6161a2df2645dc3d68e5f7fa5a8 (patch) | |
| tree | 74b8151c2a42118eb3e8c845c75f218ae04664c1 /Lib/test/test_subprocess.py | |
| parent | 6b19e50e9b395532c43149d15ceffe8218e04b0c (diff) | |
| download | cpython-d79210a0e412e6161a2df2645dc3d68e5f7fa5a8.zip cpython-d79210a0e412e6161a2df2645dc3d68e5f7fa5a8.tar.gz cpython-d79210a0e412e6161a2df2645dc3d68e5f7fa5a8.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.py | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index ce3e0c2..d7db802 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):  | 
