Kaydet (Commit) f155f1f4 authored tarafından Victor Stinner's avatar Victor Stinner

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

üst c2d095f4
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment