Missing test teardowns

This kept a file pointer open while trying to delete the file.
This commit is contained in:
Sybren A. Stüvel 2019-01-02 12:47:43 +01:00
parent d81fe590db
commit 5a41167a09
2 changed files with 2 additions and 0 deletions

View File

@ -17,6 +17,7 @@ class ModifyUncompressedTest(AbstractBlendFileTest):
self.assertFalse(self.bf.is_compressed) self.assertFalse(self.bf.is_compressed)
def tearDown(self): def tearDown(self):
super().tearDown()
if self.to_modify.exists(): if self.to_modify.exists():
self.to_modify.unlink() self.to_modify.unlink()

View File

@ -26,6 +26,7 @@ class AbstractPackTest(AbstractBlendFileTest):
self.tpath = pathlib.Path(self.tdir.name) self.tpath = pathlib.Path(self.tdir.name)
def tearDown(self): def tearDown(self):
super().tearDown()
self.tdir.cleanup() self.tdir.cleanup()
@staticmethod @staticmethod