Author: thomas.heller Date: Thu Aug 30 19:57:21 2007 New Revision: 57742 Modified: python/branches/py3k/Lib/test/test_os.py Log: Calling execvp with an empty argument list raises ValueError, but we want to test for OSError.
Modified: python/branches/py3k/Lib/test/test_os.py ============================================================================== --- python/branches/py3k/Lib/test/test_os.py (original) +++ python/branches/py3k/Lib/test/test_os.py Thu Aug 30 19:57:21 2007 @@ -439,7 +439,7 @@ 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) _______________________________________________ Python-3000-checkins mailing list Python-3000-checkins@python.org http://mail.python.org/mailman/listinfo/python-3000-checkins