From: Christian Herdtweck Date: Wed, 22 Jun 2016 15:14:37 +0000 (+0200) Subject: try to solve one of the resource warnings during unittesting X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=77625091c274a4d324ab59cf4e06486f96269847;p=python-delta-tar try to solve one of the resource warnings during unittesting --- diff --git a/testing/test_multivol.py b/testing/test_multivol.py index a7a4772..5fabb03 100644 --- a/testing/test_multivol.py +++ b/testing/test_multivol.py @@ -744,7 +744,8 @@ class MultivolGnuFormatTest(BaseTest): tarobj.extractall() except IOError as e: pass - tarobj.close() + finally: + tarobj.close() assert os.path.exists("big") assert hash != self.md5sum("big")