]> granicus.if.org Git - python/commitdiff
Fix pathext test for shutil.which() which was
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 24 Jan 2013 18:03:49 +0000 (20:03 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Thu, 24 Jan 2013 18:03:49 +0000 (20:03 +0200)
broken after applying the patch for issue #16957.

Lib/test/test_shutil.py

index f6e5a9c41d4f17c6b098fa5543511c97e6735c8c..8ac350a943b5fd59d248d085861882fe1e30ea0c 100644 (file)
@@ -1338,7 +1338,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")