From bd315c54dd3be6e5c478abd203a5b774a2a24e69 Mon Sep 17 00:00:00 2001 From: Thomas Heller Date: Thu, 30 Aug 2007 17:57:21 +0000 Subject: [PATCH] Calling execvp with an empty argument list raises ValueError, but we want to test for OSError. --- Lib/test/test_os.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 085e6fabb87..a3eb61b8fc2 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)