Discussion:
[Python-3000-checkins] r66540 - in python/branches/py3k: Lib/test/test_tarfile.py
hirokazu.yamamoto
2008-09-21 11:50:04 UTC
Permalink
Author: hirokazu.yamamoto
Date: Sun Sep 21 13:50:03 2008
New Revision: 66540

Log:
Merged revisions 66539 via svnmerge from
svn+ssh://pythondev at 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?\195?\164bel.
........


Modified:
python/branches/py3k/ (props changed)
python/branches/py3k/Lib/test/test_tarfile.py

Modified: python/branches/py3k/Lib/test/test_tarfile.py
==============================================================================
--- python/branches/py3k/Lib/test/test_tarfile.py (original)
+++ python/branches/py3k/Lib/test/test_tarfile.py Sun Sep 21 13:50:03 2008
@@ -786,6 +786,7 @@
self.tar.add(self.foo)

def tearDown(self):
+ self.tar.close()
os.remove(self.foo)
os.remove(self.bar)

Loading...