From 80c88f4304a0da47610aee0968df30bce4ac5209 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Tue, 22 Jan 2013 10:31:36 +0200 Subject: [PATCH] Fix shutil.which() test for issue #16993. --- Doc/library/shutil.rst | 2 +- Lib/test/test_shutil.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/shutil.rst b/Doc/library/shutil.rst index b5f39fe1e42..a1457d070b0 100644 --- a/Doc/library/shutil.rst +++ b/Doc/library/shutil.rst @@ -335,7 +335,7 @@ Directory and files operations directories. For example, on Windows:: >>> shutil.which("python") - 'C:\\Python33\\python.exe' + 'C:\\Python33\\python.EXE' .. versionadded:: 3.3 diff --git a/Lib/test/test_shutil.py b/Lib/test/test_shutil.py index 6ae051b0aec..bfd0fb5906b 100644 --- a/Lib/test/test_shutil.py +++ b/Lib/test/test_shutil.py @@ -1318,7 +1318,7 @@ class TestWhich(unittest.TestCase): # Ask for the file without the ".exe" extension, then ensure that # it gets found properly with the extension. 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):