From: Thomas Heller Date: Thu, 30 Aug 2007 17:57:21 +0000 (+0000) Subject: Calling execvp with an empty argument list raises ValueError, but we X-Git-Tag: v3.0a1~72 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bd315c54dd3be6e5c478abd203a5b774a2a24e69;p=thirdparty%2FPython%2Fcpython.git Calling execvp with an empty argument list raises ValueError, but we want to test for OSError. --- diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 085e6fabb877..a3eb61b8fc22 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -439,7 +439,7 @@ class URandomTests(unittest.TestCase): class ExecTests(unittest.TestCase): def test_execvpe_with_bad_program(self): - self.assertRaises(OSError, os.execvpe, 'no such app-', [], None) + self.assertRaises(OSError, os.execvpe, 'no such app-', ['no such app-'], None) def test_execvpe_with_bad_arglist(self): self.assertRaises(ValueError, os.execvpe, 'notepad', [], None)