diff options
author | Howard Trickey <howard.trickey@gmail.com> | 2019-03-17 01:48:49 +0300 |
---|---|---|
committer | Howard Trickey <howard.trickey@gmail.com> | 2019-03-17 14:36:26 +0300 |
commit | 0af22625c9f9357e873160d265b9eae4a43a549d (patch) | |
tree | fe7ad0980731e51f0d1c3d840bda3e09a2d58103 /tests | |
parent | ef66aa2005de928fcac381ef227727d27bf61fcf (diff) |
Fix bl_pyapi_idprop unit test.
Scenes can now have a 'cycles' key when starting, so account for that.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/python/bl_pyapi_idprop.py | 5 |
1 files 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)) |