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:
authorCampbell Barton <ideasman42@gmail.com>2012-02-02 08:59:30 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-02-02 08:59:30 +0400
commit369ae3d28d54cf2723ca8eddf1a76a7737b3fbe1 (patch)
tree07111f769512d39dd9b85d1cc33984cd5108cae0 /source/tests
parent697e77a49457d90821ffdfc21f0fcf60843eee05 (diff)
internal cleanup, check.
* remove duplicate operator, wasnt used. * added check for duplicate types for CTest.
Diffstat (limited to 'source/tests')
-rw-r--r--source/tests/bl_run_operators.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/source/tests/bl_run_operators.py b/source/tests/bl_run_operators.py
index b64055df252..476ccc30b54 100644
--- a/source/tests/bl_run_operators.py
+++ b/source/tests/bl_run_operators.py
@@ -137,7 +137,25 @@ def ctx_weightpaint():
bpy.ops.object.mode_set(mode='WEIGHT_PAINT')
+def bpy_check_type_duplicates():
+ # non essential sanity check
+ bl_types = dir(bpy.types)
+ bl_types_unique = set(bl_types)
+
+ if len(bl_types) != len(bl_types_unique):
+ print("Error, found duplicates in 'bpy.types'")
+ for t in sorted(bl_types_unique):
+ tot = bl_types.count(t)
+ if tot > 1:
+ print(" '%s', %d" % (t, tot))
+ import sys
+ sys.exit(1)
+
+
def main():
+
+ bpy_check_type_duplicates()
+
# bpy.ops.wm.read_factory_settings()
import bpy
operators = []