summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_shutil.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-01-24 18:04:37 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-01-24 18:04:37 (GMT)
commitdec4de235f662299485ff1807f93fd32fa14538c (patch)
tree9f651fb72216736bf4a45a19aa0098945f4b7b9b /Lib/test/test_shutil.py
parent0d55ddd3e5767a4668f90d97d7b5c7b2d6a9c27b (diff)
parentd70127ac5446c2c346ac46e38c8cbcc624a6995f (diff)
downloadcpython-dec4de235f662299485ff1807f93fd32fa14538c.zip
cpython-dec4de235f662299485ff1807f93fd32fa14538c.tar.gz
cpython-dec4de235f662299485ff1807f93fd32fa14538c.tar.bz2
Fix pathext test for shutil.which() which was
broken after applying the patch for issue #16957.
Diffstat (limited to 'Lib/test/test_shutil.py')
-rw-r--r--Lib/test/test_shutil.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_shutil.py b/Lib/test/test_shutil.py
index 23fc1f9..07d0ec9 100644
--- a/Lib/test/test_shutil.py
+++ b/Lib/test/test_shutil.py
@@ -1349,7 +1349,7 @@ class TestWhich(unittest.TestCase):
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")