]> granicus.if.org Git - python/commitdiff
Fix shutil.which() test for issue #16993.
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 22 Jan 2013 08:31:36 +0000 (10:31 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Tue, 22 Jan 2013 08:31:36 +0000 (10:31 +0200)
Doc/library/shutil.rst
Lib/test/test_shutil.py

index b5f39fe1e42a672268a16930afb450866970f536..a1457d070b02ce1ddde257d3fe545b1c1985e9d7 100644 (file)
@@ -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
 
index 6ae051b0aecbb1b5124e871f26d5bbf35044b250..bfd0fb5906be094ebba23ece1b6db5acc00e3256 100644 (file)
@@ -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):