diff -r bf92327eeda8 Lib/test/test_subprocess.py --- a/Lib/test/test_subprocess.py Mon Dec 17 19:51:15 2012 +0200 +++ b/Lib/test/test_subprocess.py Mon Dec 17 20:58:41 2012 +0200 @@ -2155,15 +2155,12 @@ self.assertEqual(proc.returncode, 1) def test_invalid_args(self): - with self.assertRaises(EnvironmentError) as c: + with self.assertRaises(FileNotFoundError) as c: with subprocess.Popen(['nonexisting_i_hope'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) as proc: pass - if c.exception.errno != errno.ENOENT: # ignore "no such file" - raise c.exception - def test_main(): unit_tests = (ProcessTestCase,