[Python-checkins] cpython (merge 3.3 -> default): Fix pathext test for shutil.which() which was

serhiy.storchaka python-checkins at python.org
Fri Jan 25 09:18:04 CET 2013


http://hg.python.org/cpython/rev/ab0ff935126c
changeset:   81693:ab0ff935126c
parent:      81689:ac485e1cb0f5
parent:      81692:99db73ce8374
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Thu Jan 24 20:04:37 2013 +0200
summary:
  Fix pathext test for shutil.which() which was
broken after applying the patch for issue #16957.

files:
  Lib/test/test_shutil.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


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
@@ -1349,7 +1349,7 @@
     def test_pathext_checking(self):
         # 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)
+        rv = shutil.which(self.file[:-4], path=self.dir)
         self.assertEqual(rv, self.temp_file.name[:-4] + ".EXE")
 
 

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


More information about the Python-checkins mailing list