]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
fix test for subprocess (#16644)
authorAndrew Svetlov <andrew.svetlov@gmail.com>
Wed, 26 Dec 2012 21:31:45 +0000 (23:31 +0200)
committerAndrew Svetlov <andrew.svetlov@gmail.com>
Wed, 26 Dec 2012 21:31:45 +0000 (23:31 +0200)
Lib/test/test_subprocess.py

index f7a7b115cdfe669853572c1929b8f9aa04da5314..75eb852cc97f7ad1b36bc25149921f6ab5ea42a3 100644 (file)
@@ -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():