mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Fix shutil.which() test for issue #16993.
This commit is contained in:
commit
2ba095c6c5
2 changed files with 2 additions and 2 deletions
|
@ -348,7 +348,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
|
||||||
|
|
||||||
|
|
|
@ -1329,7 +1329,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):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue