From 57a1233110ad9eed3c2e687323a161281d1526aa Mon Sep 17 00:00:00 2001 From: Andrew Svetlov Date: Wed, 26 Dec 2012 23:31:45 +0200 Subject: [PATCH] fix test for subprocess (#16644) --- Lib/test/test_subprocess.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index f7a7b115cdf..75eb852cc97 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():