summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_os.py
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2007-08-30 17:57:21 (GMT)
committerThomas Heller <theller@ctypes.org>2007-08-30 17:57:21 (GMT)
commitbd315c54dd3be6e5c478abd203a5b774a2a24e69 (patch)
tree95d0d9d9368e0f4d9c06dce91ce1923737fa7466 /Lib/test/test_os.py
parent080b2b252ec430c85464cbc6d82d1f38f9776af4 (diff)
downloadcpython-bd315c54dd3be6e5c478abd203a5b774a2a24e69.zip
cpython-bd315c54dd3be6e5c478abd203a5b774a2a24e69.tar.gz
cpython-bd315c54dd3be6e5c478abd203a5b774a2a24e69.tar.bz2
Calling execvp with an empty argument list raises ValueError, but we
want to test for OSError.
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r--Lib/test/test_os.py2
1 files changed, 1 insertions, 1 deletions
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 URandomTests(unittest.TestCase):
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)