Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/python/bl_alembic_import_test.py')
-rw-r--r--tests/python/bl_alembic_import_test.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/python/bl_alembic_import_test.py b/tests/python/bl_alembic_import_test.py
index ef5ae372333..854a5846361 100644
--- a/tests/python/bl_alembic_import_test.py
+++ b/tests/python/bl_alembic_import_test.py
@@ -51,7 +51,7 @@ class SimpleImportTest(unittest.TestCase):
# The objects should be linked to scene_collection in Blender 2.8,
# and to scene in Blender 2.7x.
- objects = bpy.context.scene.objects
+ objects = bpy.context.scene_collection.objects
self.assertEqual(13, len(objects))
# Test the hierarchy.
@@ -83,7 +83,7 @@ class SimpleImportTest(unittest.TestCase):
# All cubes should be selected, but the sphere shouldn't be.
for ob in bpy.data.objects:
- self.assertEqual('Cube' in ob.name, ob.select)
+ self.assertEqual('Cube' in ob.name, ob.select_get())
def test_change_path_constraint(self):
import math