From 77625091c274a4d324ab59cf4e06486f96269847 Mon Sep 17 00:00:00 2001 From: Christian Herdtweck Date: Wed, 22 Jun 2016 17:14:37 +0200 Subject: [PATCH] try to solve one of the resource warnings during unittesting --- testing/test_multivol.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) 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") -- 1.7.1