Issue #3838: TarFile object assigned to self.tar should be closed explicitly.

Reviewed by Lars Gustäbel.
This commit is contained in:
Hirokazu Yamamoto 2008-09-21 11:44:23 +00:00
parent 267acd2205
commit 56d380de1d
1 changed files with 1 additions and 0 deletions

View File

@ -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)