]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Calling execvp with an empty argument list raises ValueError, but we
authorThomas Heller <theller@ctypes.org>
Thu, 30 Aug 2007 17:57:21 +0000 (17:57 +0000)
committerThomas Heller <theller@ctypes.org>
Thu, 30 Aug 2007 17:57:21 +0000 (17:57 +0000)
want to test for OSError.

Lib/test/test_os.py

index 085e6fabb8772b7cd7fd7effc60169afbf434607..a3eb61b8fc22ff5638ea1f095c3cc86946181973 100644 (file)
@@ -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)