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.
........
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 @@
         self.tar.add(self.foo)
 
     def tearDown(self):
+        self.tar.close()
         os.remove(self.foo)
         os.remove(self.bar)