From 5a41167a096566c9f818a0ffefcc0155f92fc766 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Wed, 2 Jan 2019 12:47:43 +0100 Subject: [PATCH] Missing test teardowns This kept a file pointer open while trying to delete the file. --- tests/test_blendfile_modification.py | 1 + tests/test_pack.py | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/test_blendfile_modification.py b/tests/test_blendfile_modification.py index 5f54bd9..65f3aac 100644 --- a/tests/test_blendfile_modification.py +++ b/tests/test_blendfile_modification.py @@ -17,6 +17,7 @@ class ModifyUncompressedTest(AbstractBlendFileTest): self.assertFalse(self.bf.is_compressed) def tearDown(self): + super().tearDown() if self.to_modify.exists(): self.to_modify.unlink() diff --git a/tests/test_pack.py b/tests/test_pack.py index fe65004..055b0fd 100644 --- a/tests/test_pack.py +++ b/tests/test_pack.py @@ -26,6 +26,7 @@ class AbstractPackTest(AbstractBlendFileTest): self.tpath = pathlib.Path(self.tdir.name) def tearDown(self): + super().tearDown() self.tdir.cleanup() @staticmethod