summaryrefslogtreecommitdiff
path: root/Lib/test/test_tarfile.py
diff options
context:
space:
mode:
authorHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>2008-09-21 11:44:23 +0000
committerHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>2008-09-21 11:44:23 +0000
commit56d380de1d01cebb3a05e62411455cbdb08f83b9 (patch)
treeae2330311b051b8759e263a5150f8dc4009b6b8e /Lib/test/test_tarfile.py
parent267acd2205c09809cc204811d67c63e54b08e0d1 (diff)
downloadcpython-git-56d380de1d01cebb3a05e62411455cbdb08f83b9.tar.gz
Issue #3838: TarFile object assigned to self.tar should be closed explicitly.
Reviewed by Lars Gustäbel.
Diffstat (limited to 'Lib/test/test_tarfile.py')
-rw-r--r--Lib/test/test_tarfile.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_tarfile.py b/Lib/test/test_tarfile.py
index f3bc12d24b..7e4fd25cf0 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)