]> granicus.if.org Git - python/commitdiff
Merged revisions 66539 via svnmerge from
authorHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>
Sun, 21 Sep 2008 11:50:03 +0000 (11:50 +0000)
committerHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>
Sun, 21 Sep 2008 11:50:03 +0000 (11:50 +0000)
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r66539 | hirokazu.yamamoto | 2008-09-21 20:44:23 +0900 | 2 lines

  Issue #3838: TarFile object assigned to self.tar should be closed explicitly.
  Reviewed by Lars Gustäbel.
........

Lib/test/test_tarfile.py

index 7e039a6692062e479c6d6a9da033ac22af22a3cb..1f9e092440925f22d0b32e1164f7ef2d92277e6c 100644 (file)
@@ -786,6 +786,7 @@ class HardlinkTest(unittest.TestCase):
         self.tar.add(self.foo)
 
     def tearDown(self):
+        self.tar.close()
         os.remove(self.foo)
         os.remove(self.bar)