summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-01-22 08:32:16 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-01-22 08:32:16 (GMT)
commit2ba095c6c578d76288f5697cc121ec1f80b4f6c7 (patch)
treecc9d212a306ae267dd60fa0da223ca19da3800f6
parente461f7939ddc39e4acb0cc02ce439cacb48991c5 (diff)
parent80c88f4304a0da47610aee0968df30bce4ac5209 (diff)
downloadcpython-2ba095c6c578d76288f5697cc121ec1f80b4f6c7.zip
cpython-2ba095c6c578d76288f5697cc121ec1f80b4f6c7.tar.gz
cpython-2ba095c6c578d76288f5697cc121ec1f80b4f6c7.tar.bz2
Fix shutil.which() test for issue #16993.
-rw-r--r--Doc/library/shutil.rst2
-rw-r--r--Lib/test/test_shutil.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/shutil.rst b/Doc/library/shutil.rst
index bf65b6c..e4f348c 100644
--- a/Doc/library/shutil.rst
+++ b/Doc/library/shutil.rst
@@ -348,7 +348,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 eafa628..ce37d3b 100644
--- a/Lib/test/test_shutil.py
+++ b/Lib/test/test_shutil.py
@@ -1329,7 +1329,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):