From af079d4c14c2ff9718f964cddb6b1801e22d1c26 Mon Sep 17 00:00:00 2001 From: Hirokazu Yamamoto Date: Sun, 21 Sep 2008 11:50:03 +0000 Subject: [PATCH] Merged revisions 66539 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ........ 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/test/test_tarfile.py b/Lib/test/test_tarfile.py index 7e039a66920..1f9e0924409 100644 --- a/Lib/test/test_tarfile.py +++ b/Lib/test/test_tarfile.py @@ -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)