From: Serhiy Storchaka Date: Thu, 24 Jan 2013 18:03:49 +0000 (+0200) Subject: Fix pathext test for shutil.which() which was X-Git-Tag: v3.3.1rc1~303 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d70127ac5446c2c346ac46e38c8cbcc624a6995f;p=python Fix pathext test for shutil.which() which was broken after applying the patch for issue #16957. --- diff --git a/Lib/test/test_shutil.py b/Lib/test/test_shutil.py index f6e5a9c41d..8ac350a943 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")