Oops, my patch on subprocess is not merged yet: fix my previous commit on test_os

This commit is contained in:
Victor Stinner 2010-05-17 00:18:34 +00:00
parent c2d095f494
commit f155f1f4ce

View File

@ -684,10 +684,7 @@ class ExecTests(unittest.TestCase):
with _execvpe_mockup(defpath=program_path) as calls:
self.assertRaises(OSError, os._execvpe, program, arguments, env=env)
self.assertEqual(len(calls), 1)
if os.name != "nt":
self.assertEqual(calls[0], ('execve', os.fsencode(fullpath), (arguments, env)))
else:
self.assertEqual(calls[0], ('execve', fullpath, (arguments, env)))
self.assertEqual(calls[0], ('execve', fullpath, (arguments, env)))
class Win32ErrorTests(unittest.TestCase):