]> granicus.if.org Git - python/commitdiff
Oops, my patch on subprocess is not merged yet: fix my previous commit on test_os
authorVictor Stinner <victor.stinner@haypocalc.com>
Mon, 17 May 2010 00:18:34 +0000 (00:18 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Mon, 17 May 2010 00:18:34 +0000 (00:18 +0000)
Lib/test/test_os.py

index 49f9cbd10d2fa3c0fb7cf0299f46c004e635dade..37abe2294f983ff9e40f4da8071cc8a557de5e3e 100644 (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):