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 085e6fa..a3eb61b 100644
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -439,7 +439,7 @@
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)