commit | 56d380de1d01cebb3a05e62411455cbdb08f83b9 | [log] [tgz] |
---|---|---|
author | Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp> | Sun Sep 21 11:44:23 2008 +0000 |
committer | Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp> | Sun Sep 21 11:44:23 2008 +0000 |
tree | ae2330311b051b8759e263a5150f8dc4009b6b8e | |
parent | 267acd2205c09809cc204811d67c63e54b08e0d1 [diff] [blame] |
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 f3bc12d..7e4fd25 100644 --- a/Lib/test/test_tarfile.py +++ b/Lib/test/test_tarfile.py
@@ -787,6 +787,7 @@ self.tar.add(self.foo) def tearDown(self): + self.tar.close() os.remove(self.foo) os.remove(self.bar)