try to solve one of the resource warnings during unittesting
authorChristian Herdtweck <christian.herdtweck@intra2net.com>
Wed, 22 Jun 2016 15:14:37 +0000 (17:14 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 2 Apr 2018 09:32:53 +0000 (11:32 +0200)
testing/test_multivol.py

index a7a4772..5fabb03 100644 (file)
@@ -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")