summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMatthias Klose <doko@ubuntu.com>2010-03-20 02:13:49 (GMT)
committerMatthias Klose <doko@ubuntu.com>2010-03-20 02:13:49 (GMT)
commitb8022c8ad1e4af313c7086dfa9116278a9e57ac2 (patch)
tree683a33c3b986a6c425c2b3077e2634f7e1614840 /Lib
parente0bc5dab9906496b435360bb8dd19c34ce16ec37 (diff)
downloadcpython-b8022c8ad1e4af313c7086dfa9116278a9e57ac2.zip
cpython-b8022c8ad1e4af313c7086dfa9116278a9e57ac2.tar.gz
cpython-b8022c8ad1e4af313c7086dfa9116278a9e57ac2.tar.bz2
Merged revisions 79096 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r79096 | matthias.klose | 2010-03-19 15:45:06 +0100 (Fr, 19 Mär 2010) | 2 lines - Issue #1039, #8154: Fix os.execlp() crash with missing 2nd argument. ........
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_os.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index 3cb411b..45f6bd2 100644
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -511,6 +511,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")