Calling execvp with an empty argument list raises ValueError, but we

want to test for OSError.
This commit is contained in:
Thomas Heller 2007-08-30 17:57:21 +00:00
parent 080b2b252e
commit bd315c54dd
1 changed files with 1 additions and 1 deletions

View File

@ -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)