From 0af22625c9f9357e873160d265b9eae4a43a549d Mon Sep 17 00:00:00 2001 From: Howard Trickey Date: Sat, 16 Mar 2019 18:48:49 -0400 Subject: Fix bl_pyapi_idprop unit test. Scenes can now have a 'cycles' key when starting, so account for that. --- tests/python/bl_pyapi_idprop.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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)) -- cgit v1.2.3