diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-26 21:31:45 (GMT) |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-26 21:31:45 (GMT) |
commit | 57a1233110ad9eed3c2e687323a161281d1526aa (patch) | |
tree | d9d7ba51870b82785fc6164a9ae07185a4f64365 /Lib/test/test_subprocess.py | |
parent | c73f863a8d5718bec54b6697fc156c8b6a30ca7d (diff) | |
download | cpython-57a1233110ad9eed3c2e687323a161281d1526aa.zip cpython-57a1233110ad9eed3c2e687323a161281d1526aa.tar.gz cpython-57a1233110ad9eed3c2e687323a161281d1526aa.tar.bz2 |
fix test for subprocess (#16644)
Diffstat (limited to 'Lib/test/test_subprocess.py')
-rw-r--r-- | Lib/test/test_subprocess.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index f7a7b11..75eb852 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -2023,8 +2023,7 @@ class ContextManagerTests(BaseTestCase): stderr=subprocess.PIPE) as proc: pass - if c.exception.errno != errno.ENOENT: # ignore "no such file" - raise c.exception + self.assertEqual(c.exception.errno, errno.ENOENT) def test_main(): |