diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-01-24 18:03:49 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-01-24 18:03:49 (GMT) |
commit | d70127ac5446c2c346ac46e38c8cbcc624a6995f (patch) | |
tree | cb68af64438081f8a8149fdde844324a06567560 /Lib | |
parent | 48df2eb9655234c66c7c53701260085ad1ba8044 (diff) | |
download | cpython-d70127ac5446c2c346ac46e38c8cbcc624a6995f.zip cpython-d70127ac5446c2c346ac46e38c8cbcc624a6995f.tar.gz cpython-d70127ac5446c2c346ac46e38c8cbcc624a6995f.tar.bz2 |
Fix pathext test for shutil.which() which was
broken after applying the patch for issue #16957.
Diffstat (limited to 'Lib')
-rw-r--r-- | 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 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") |