From 56d380de1d01cebb3a05e62411455cbdb08f83b9 Mon Sep 17 00:00:00 2001 From: Hirokazu Yamamoto Date: Sun, 21 Sep 2008 11:44:23 +0000 Subject: =?UTF-8?q?Issue=20#3838:=20TarFile=20object=20assigned=20to=20sel?= =?UTF-8?q?f.tar=20should=20be=20closed=20explicitly.=20Reviewed=20by=20La?= =?UTF-8?q?rs=20Gust=C3=A4bel.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 f3bc12d..7e4fd25 100644 --- a/Lib/test/test_tarfile.py +++ b/Lib/test/test_tarfile.py @@ -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) -- cgit v0.12