summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_subprocess.py
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-26 21:34:54 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-26 21:34:54 (GMT)
commitb172697cd8493f433c577a71433f198e0ca471c8 (patch)
tree5a4d0fa9c2707272c4fc0eefd42c583b62d46750 /Lib/test/test_subprocess.py
parentaa24468c9b6336e0f665445f5552cb09eaba9697 (diff)
parent57a1233110ad9eed3c2e687323a161281d1526aa (diff)
downloadcpython-b172697cd8493f433c577a71433f198e0ca471c8.zip
cpython-b172697cd8493f433c577a71433f198e0ca471c8.tar.gz
cpython-b172697cd8493f433c577a71433f198e0ca471c8.tar.bz2
fix test for subprocess (#16644)
Diffstat (limited to 'Lib/test/test_subprocess.py')
-rw-r--r--Lib/test/test_subprocess.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py
index b0cd63c..63fa9a7 100644
--- a/Lib/test/test_subprocess.py
+++ b/Lib/test/test_subprocess.py
@@ -2154,15 +2154,12 @@ class ContextManagerTests(BaseTestCase):
self.assertEqual(proc.returncode, 1)
def test_invalid_args(self):
- with self.assertRaises(EnvironmentError) as c:
+ with self.assertRaises(FileNotFoundError) as c:
with subprocess.Popen(['nonexisting_i_hope'],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE) as proc:
pass
- if c.exception.errno != errno.ENOENT: # ignore "no such file"
- raise c.exception
-
def test_main():
unit_tests = (ProcessTestCase,