diff options
author | Jacques Lucke <mail@jlucke.com> | 2018-09-21 13:51:06 +0300 |
---|---|---|
committer | Jacques Lucke <mail@jlucke.com> | 2018-09-21 13:51:06 +0300 |
commit | 52cee1a23c92d30b241d58f7ed65a951ff034dee (patch) | |
tree | aaf3aede1459830f1c3eff21a72544d4eefe0492 /tests | |
parent | 9ecce9b4c43e242238688c6b3e0899408dd59867 (diff) |
Fix: setUp of ID Property tests failed
Diffstat (limited to 'tests')
-rw-r--r-- | tests/python/bl_pyapi_idprop.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/python/bl_pyapi_idprop.py b/tests/python/bl_pyapi_idprop.py index 063d68fae20..6b5335d4a8e 100644 --- a/tests/python/bl_pyapi_idprop.py +++ b/tests/python/bl_pyapi_idprop.py @@ -15,9 +15,13 @@ class TestHelper: def setUp(self): self._id = bpy.context.scene - assert(len(self._id.keys()) == 0) + self._removeProperties() + assert len(self._id.keys()) == 0 def tearDown(self): + self._removeProperties() + + def _removeProperties(self): for key in list(self._id.keys()): del self._id[key] |