Issue #3838: TarFile object assigned to self.tar should be closed explicitly.
Reviewed by Lars Gustäbel.
This commit is contained in:
parent
267acd2205
commit
56d380de1d
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue