[Bf-blender-cvs] [0848eee8dff] temp-sybren-alembic-fix-test: Alembic: unload blend file before deleting imported Alembic file

Sybren A. Stüvel noreply at git.blender.org
Mon Feb 17 11:12:47 CET 2020


Commit: 0848eee8dff71f5f11b7a970717a64d4a2dd4b34
Author: Sybren A. Stüvel
Date:   Mon Feb 17 11:12:42 2020 +0100
Branches: temp-sybren-alembic-fix-test
https://developer.blender.org/rB0848eee8dff71f5f11b7a970717a64d4a2dd4b34

Alembic: unload blend file before deleting imported Alembic file

===================================================================

M	tests/python/bl_alembic_io_test.py

===================================================================

diff --git a/tests/python/bl_alembic_io_test.py b/tests/python/bl_alembic_io_test.py
index 431fd53be54..2786a2db4d7 100644
--- a/tests/python/bl_alembic_io_test.py
+++ b/tests/python/bl_alembic_io_test.py
@@ -269,6 +269,10 @@ class CameraExportImportTest(unittest.TestCase):
         self.tempdir = pathlib.Path(self._tempdir.name)
 
     def tearDown(self):
+        # Unload the current blend file to release the imported Alembic file.
+        # This is necessary on Windows in order to be able to delete the
+        # temporary ABC file.
+        bpy.ops.wm.read_homefile()
         self._tempdir.cleanup()
 
     def test_export_hierarchy(self):



More information about the Bf-blender-cvs mailing list