cpython: 99db73ce8374 (original) (raw)
Mercurial > cpython
changeset 81692:99db73ce8374 3.3
Fix pathext test for shutil.which() which was broken after applying the patch for issue #16957. [#16957]
Serhiy Storchaka storchaka@gmail.com | |
---|---|
date | Thu, 24 Jan 2013 20:03:49 +0200 |
parents | 3023849c0c15 |
children | ab0ff935126c d0175f782211 |
files | Lib/test/test_shutil.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-)[+] [-] Lib/test/test_shutil.py 2 |
line wrap: on
line diff
--- 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)[](#l1.7)
rv = shutil.which(self.file[:-4], path=self.dir)[](#l1.8) self.assertEqual(rv, self.temp_file.name[:-4] + ".EXE")[](#l1.9)