[Bf-blender-cvs] [0af22625c9f] master: Fix bl_pyapi_idprop unit test.
Howard Trickey
noreply at git.blender.org
Sun Mar 17 12:36:36 CET 2019
Commit: 0af22625c9f9357e873160d265b9eae4a43a549d
Author: Howard Trickey
Date: Sat Mar 16 18:48:49 2019 -0400
Branches: master
https://developer.blender.org/rB0af22625c9f9357e873160d265b9eae4a43a549d
Fix bl_pyapi_idprop unit test.
Scenes can now have a 'cycles' key when starting, so account for that.
===================================================================
M tests/python/bl_pyapi_idprop.py
===================================================================
diff --git a/tests/python/bl_pyapi_idprop.py b/tests/python/bl_pyapi_idprop.py
index 063d68fae20..3d0cbd2a7bb 100644
--- a/tests/python/bl_pyapi_idprop.py
+++ b/tests/python/bl_pyapi_idprop.py
@@ -15,11 +15,12 @@ class TestHelper:
def setUp(self):
self._id = bpy.context.scene
- assert(len(self._id.keys()) == 0)
+ assert(len(self._id.keys()) == 0 or self._id.keys() == ["cycles"])
def tearDown(self):
for key in list(self._id.keys()):
- del self._id[key]
+ if key != "cycles":
+ del self._id[key]
def assertAlmostEqualSeq(self, list1, list2):
self.assertEqual(len(list1), len(list2))
More information about the Bf-blender-cvs
mailing list