Fixed leaking file descriptors in unit tests
These weren't any issue in Linux, but Windows doesn't like it when you try to delete a still-opened file.
This commit is contained in:
@@ -17,5 +17,7 @@ class AbstractBlendFileTest(unittest.TestCase):
|
||||
self.bf = None
|
||||
|
||||
def tearDown(self):
|
||||
if self.bf is not None:
|
||||
self.bf.close()
|
||||
self.bf = None
|
||||
blendfile.close_all_cached()
|
||||
|
||||
Reference in New Issue
Block a user