diff options
author | Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp> | 2008-09-21 11:44:23 (GMT) |
---|---|---|
committer | Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp> | 2008-09-21 11:44:23 (GMT) |
commit | 56d380de1d01cebb3a05e62411455cbdb08f83b9 (patch) | |
tree | ae2330311b051b8759e263a5150f8dc4009b6b8e /Lib/test | |
parent | 267acd2205c09809cc204811d67c63e54b08e0d1 (diff) | |
download | cpython-56d380de1d01cebb3a05e62411455cbdb08f83b9.zip cpython-56d380de1d01cebb3a05e62411455cbdb08f83b9.tar.gz cpython-56d380de1d01cebb3a05e62411455cbdb08f83b9.tar.bz2 |
Issue #3838: TarFile object assigned to self.tar should be closed explicitly.
Reviewed by Lars Gustäbel.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_tarfile.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_tarfile.py b/Lib/test/test_tarfile.py index f3bc12d..7e4fd25 100644 --- a/Lib/test/test_tarfile.py +++ b/Lib/test/test_tarfile.py @@ -787,6 +787,7 @@ class HardlinkTest(unittest.TestCase): self.tar.add(self.foo) def tearDown(self): + self.tar.close() os.remove(self.foo) os.remove(self.bar) |