Revert r79131

- Issue #1039, #8154: Fix os.execlp() crash with missing 2nd argument.
This commit is contained in:
Matthias Klose 2010-03-21 11:15:45 +00:00
parent 3828741cdc
commit a0dc275f08
3 changed files with 0 additions and 10 deletions

View File

@ -511,9 +511,6 @@ 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")

View File

@ -15,8 +15,6 @@ Core and Builtins
Library
-------
- Issue #1039, #8154: Fix os.execlp() crash with missing 2nd argument.
- Issue #4961: Inconsistent/wrong result of askyesno function in tkMessageBox
with Tcl/Tk-8.5.

View File

@ -2979,11 +2979,6 @@ posix_execv(PyObject *self, PyObject *args)
PyMem_Free(path);
return NULL;
}
if (argc < 1) {
PyErr_SetString(PyExc_ValueError, "execv() arg 2 must not be empty");
PyMem_Free(path);
return NULL;
}
argvlist = PyMem_NEW(char *, argc+1);
if (argvlist == NULL) {