- Issue #1039, #8154: Fix os.execlp() crash with missing 2nd argument.
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index 3dd7f90..4e21dd8 100644
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -505,6 +505,9 @@
except NotImplementedError:
pass
+ def test_execvpe_with_bad_arglist(self):
+ self.assertRaises(ValueError, os.execvpe, 'notepad', [], None)
+
class Win32ErrorTests(unittest.TestCase):
def test_rename(self):
self.assertRaises(WindowsError, os.rename, test_support.TESTFN, test_support.TESTFN+".bak")