diff options
-rw-r--r-- | Lib/test/test_os.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 49f9cbd..37abe22 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -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): |