[Python-checkins] cpython (merge 3.3 -> default): Fix shutil.which() test for issue #16993.

serhiy.storchaka python-checkins at python.org
Tue Jan 22 09:33:25 CET 2013


http://hg.python.org/cpython/rev/e8f40d4f497c
changeset:   81646:e8f40d4f497c
parent:      81644:6877957a5e91
parent:      81645:28282e4e9d04
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Tue Jan 22 10:32:16 2013 +0200
summary:
  Fix shutil.which() test for issue #16993.

files:
  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
--- a/Doc/library/shutil.rst
+++ b/Doc/library/shutil.rst
@@ -348,7 +348,7 @@
    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
--- a/Lib/test/test_shutil.py
+++ b/Lib/test/test_shutil.py
@@ -1329,7 +1329,7 @@
         # 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):

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list