diff --git a/tests/python/bl_test.py b/tests/python/bl_test.py index ceb5811438a..173d575a912 100644 --- a/tests/python/bl_test.py +++ b/tests/python/bl_test.py @@ -44,9 +44,9 @@ def replace_bpy_app_version(): def clear_startup_blend(): import bpy - for scene in bpy.data.scenes: - for obj in scene.objects: - scene.objects.unlink(obj) + for col in bpy.data.collections: + for obj in col.objects: + col.objects.unlink(obj) def blend_to_md5():