diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-26 21:36:17 (GMT) |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-26 21:36:17 (GMT) |
commit | 0c8ee7fc8bfaf90a0717c1149f03df00a7ad6b16 (patch) | |
tree | 93e3edbe872615ab07d1428d169c2e0cf502f14a /Lib/test/test_subprocess.py | |
parent | 4de2924dabea037919fc7a80f94dbe233c68c46e (diff) | |
parent | b172697cd8493f433c577a71433f198e0ca471c8 (diff) | |
download | cpython-0c8ee7fc8bfaf90a0717c1149f03df00a7ad6b16.zip cpython-0c8ee7fc8bfaf90a0717c1149f03df00a7ad6b16.tar.gz cpython-0c8ee7fc8bfaf90a0717c1149f03df00a7ad6b16.tar.bz2 |
fix test for subprocess (#16644)
Diffstat (limited to 'Lib/test/test_subprocess.py')
-rw-r--r-- | Lib/test/test_subprocess.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index c5a513e..3adf05c 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(OSError) 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, |