diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2019-06-25 17:07:28 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2019-06-25 17:08:56 +0300 |
commit | 24b47c00eaabe12b5262b59a185da154a477bd98 (patch) | |
tree | 58631f6d3698ca275c3e8907d3d3247d4f8b9a54 /tests/python/bl_keymap_completeness.py | |
parent | c8034993ff5ed6a4fa667bb16eb042114beb2f68 (diff) |
Fix related to T65963: Ctest: Failing test script_load_keymap passes.
Fix things to make test actually fail as expected (one cannot compare
functions to strings, so no more sorting for now).
Not sure how to actually fix the test though, not even sure test make
any sense anymore actually, with all those weirdo gizmos and tools
keymaps thingy...
Diffstat (limited to 'tests/python/bl_keymap_completeness.py')
-rw-r--r-- | tests/python/bl_keymap_completeness.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/python/bl_keymap_completeness.py b/tests/python/bl_keymap_completeness.py index 19541b355e2..30dac64f88b 100644 --- a/tests/python/bl_keymap_completeness.py +++ b/tests/python/bl_keymap_completeness.py @@ -49,14 +49,17 @@ def check_maps(): test = maps_py - maps_bl if test: print("Keymaps that are in 'bl_keymap_utils.keymap_hierarchy' but not blender") - for km_id in sorted(test): + for km_id in test: + if callable(km_id): + # Keymap functions of tools are not in blender anyway... + continue print("\t%s" % km_id) - err = True + err = True test = maps_bl - maps_py if test: print("Keymaps that are in blender but not in 'bl_keymap_utils.keymap_hierarchy'") - for km_id in sorted(test): + for km_id in test: km = keyconf.keymaps[km_id] print(" ('%s', '%s', '%s', [])," % (km_id, km.space_type, km.region_type)) err = True |