summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>2008-09-21 11:50:03 (GMT)
committerHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>2008-09-21 11:50:03 (GMT)
commitaf079d4c14c2ff9718f964cddb6b1801e22d1c26 (patch)
treef4281e9f51d79931e6b556e3533783e609ffc9e4 /Lib
parent23d11d31fe689577f9036c58f3c871ac4b9b4db2 (diff)
downloadcpython-af079d4c14c2ff9718f964cddb6b1801e22d1c26.zip
cpython-af079d4c14c2ff9718f964cddb6b1801e22d1c26.tar.gz
cpython-af079d4c14c2ff9718f964cddb6b1801e22d1c26.tar.bz2
Merged revisions 66539 via svnmerge from
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. ........
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_tarfile.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_tarfile.py b/Lib/test/test_tarfile.py
index 7e039a6..1f9e092 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)