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:
Diffstat (limited to 'source/tests/bl_run_operators.py')
-rw-r--r--source/tests/bl_run_operators.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/source/tests/bl_run_operators.py b/source/tests/bl_run_operators.py
index b64055df252..b3781e94696 100644
--- a/source/tests/bl_run_operators.py
+++ b/source/tests/bl_run_operators.py
@@ -37,6 +37,7 @@ op_blacklist = (
"render.render",
"*.*_export",
"*.*_import",
+ "wm.blenderplayer_start",
"wm.url_open",
"wm.doc_view",
"wm.path_open",
@@ -137,7 +138,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 = []