From: Andrew Svetlov Date: Wed, 26 Dec 2012 21:31:45 +0000 (+0200) Subject: fix test for subprocess (#16644) X-Git-Tag: v3.3.1rc1~478^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=57a1233110ad9eed3c2e687323a161281d1526aa;p=thirdparty%2FPython%2Fcpython.git fix test for subprocess (#16644) --- diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index f7a7b115cdfe..75eb852cc97f 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():