diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-26 23:36:17 +0200 |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-26 23:36:17 +0200 |
commit | 0c8ee7fc8bfaf90a0717c1149f03df00a7ad6b16 (patch) | |
tree | 93e3edbe872615ab07d1428d169c2e0cf502f14a | |
parent | 4de2924dabea037919fc7a80f94dbe233c68c46e (diff) | |
parent | b172697cd8493f433c577a71433f198e0ca471c8 (diff) | |
download | cpython-git-0c8ee7fc8bfaf90a0717c1149f03df00a7ad6b16.tar.gz |
fix test for subprocess (#16644)
-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 c5a513e253..3adf05c5bf 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, |