Kaydet (Commit) 56d380de authored tarafından Hirokazu Yamamoto's avatar Hirokazu Yamamoto

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

Reviewed by Lars Gustäbel.
üst 267acd22
...@@ -787,6 +787,7 @@ class HardlinkTest(unittest.TestCase): ...@@ -787,6 +787,7 @@ class HardlinkTest(unittest.TestCase):
self.tar.add(self.foo) self.tar.add(self.foo)
def tearDown(self): def tearDown(self):
self.tar.close()
os.remove(self.foo) os.remove(self.foo)
os.remove(self.bar) os.remove(self.bar)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment