- Issue #1039, #8154: Fix os.execlp() crash with missing 2nd argument.

This commit is contained in:
Matthias Klose 2010-03-19 14:45:06 +00:00
parent f4fd0bf7c1
commit e9fbf2b943
3 changed files with 10 additions and 0 deletions

View file

@ -505,6 +505,9 @@ class URandomTests (unittest.TestCase):
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")