]> granicus.if.org Git - python/commitdiff
Issue #3838: TarFile object assigned to self.tar should be closed explicitly.
authorHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>
Sun, 21 Sep 2008 11:44:23 +0000 (11:44 +0000)
committerHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>
Sun, 21 Sep 2008 11:44:23 +0000 (11:44 +0000)
Reviewed by Lars Gustäbel.

Lib/test/test_tarfile.py

index f3bc12d24beb22d0c6ee62fd1f00b851ddb35959..7e4fd25cf04bc3002b7155ddf53d7124f29118db 100644 (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)