Commits

Serhiy Storchaka committed 28282e4 Draft

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

  • Participants
  • Parent commits d0e9f64
  • Branches 3.3

Comments (0)

Files changed (2)

Doc/library/shutil.rst

    directories.  For example, on Windows::
 
       >>> shutil.which("python")
-      'C:\\Python33\\python.exe'
+      'C:\\Python33\\python.EXE'
 
    .. versionadded:: 3.3
 

Lib/test/test_shutil.py

         # 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):