From: Hirokazu Yamamoto Date: Sun, 21 Sep 2008 11:44:23 +0000 (+0000) Subject: Issue #3838: TarFile object assigned to self.tar should be closed explicitly. X-Git-Tag: v2.6~58 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56d380de1d01cebb3a05e62411455cbdb08f83b9;p=thirdparty%2FPython%2Fcpython.git Issue #3838: TarFile object assigned to self.tar should be closed explicitly. Reviewed by Lars Gustäbel. --- diff --git a/Lib/test/test_tarfile.py b/Lib/test/test_tarfile.py index f3bc12d24beb..7e4fd25cf04b 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)