mirror of
https://github.com/python/cpython.git
synced 2024-12-01 13:55:45 +08:00
Oops, my patch on subprocess is not merged yet: fix my previous commit on test_os
This commit is contained in:
parent
c2d095f494
commit
f155f1f4ce
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user