From d70127ac5446c2c346ac46e38c8cbcc624a6995f Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Thu, 24 Jan 2013 20:03:49 +0200 Subject: Fix pathext test for shutil.which() which was broken after applying the patch for issue #16957. --- Lib/test/test_shutil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_shutil.py b/Lib/test/test_shutil.py index f6e5a9c..8ac350a 100644 --- a/Lib/test/test_shutil.py +++ b/Lib/test/test_shutil.py @@ -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") -- cgit v0.12