diff -r 0238cc842805 Lib/test/test_subprocess.py --- a/Lib/test/test_subprocess.py Thu Dec 06 17:49:58 2012 -0500 +++ b/Lib/test/test_subprocess.py Sat Dec 08 18:58:14 2012 +0200 @@ -2161,8 +2161,7 @@ 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():