Kaydet (Commit) 80c88f43 authored tarafından Serhiy Storchaka's avatar Serhiy Storchaka

Fix shutil.which() test for issue #16993.

üst 9fff3865
...@@ -335,7 +335,7 @@ Directory and files operations ...@@ -335,7 +335,7 @@ Directory and files operations
directories. For example, on Windows:: directories. For example, on Windows::
>>> shutil.which("python") >>> shutil.which("python")
'C:\\Python33\\python.exe' 'C:\\Python33\\python.EXE'
.. versionadded:: 3.3 .. versionadded:: 3.3
......
...@@ -1318,7 +1318,7 @@ class TestWhich(unittest.TestCase): ...@@ -1318,7 +1318,7 @@ class TestWhich(unittest.TestCase):
# Ask for the file without the ".exe" extension, then ensure that # Ask for the file without the ".exe" extension, then ensure that
# it gets found properly with the extension. # it gets found properly with the extension.
rv = shutil.which(self.temp_file.name[:-4], path=self.dir) rv = shutil.which(self.temp_file.name[:-4], path=self.dir)
self.assertEqual(rv, self.temp_file.name[:-4] + ".exe") self.assertEqual(rv, self.temp_file.name[:-4] + ".EXE")
class TestMove(unittest.TestCase): class TestMove(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