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:
authorBastien Montagne <montagne29@wanadoo.fr>2019-04-18 18:14:17 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2019-04-18 18:14:51 +0300
commit098f75897e3ddf4bb93f64cecb322d7370127419 (patch)
tree4a1b8142aac8fe8b38269c9b2fad4385f9bfd1b7 /tests/python/bl_load_addons.py
parentd6f93791494bb04f3ddf5ca1e6a5fe17fb7f22fb (diff)
PyTests: do not try to load non-2.8-ready add-ons.
Diffstat (limited to 'tests/python/bl_load_addons.py')
-rw-r--r--tests/python/bl_load_addons.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/python/bl_load_addons.py b/tests/python/bl_load_addons.py
index d54d5c3c45f..0df98585062 100644
--- a/tests/python/bl_load_addons.py
+++ b/tests/python/bl_load_addons.py
@@ -50,6 +50,10 @@ def _init_addon_blacklist():
# netrender has known problems re-registering
BLACKLIST_ADDONS.add("netrender")
+ for mod in addon_utils.modules():
+ if addon_utils.module_bl_info(mod)['blender'] < (2, 80, 0):
+ BLACKLIST_ADDONS.add(mod.__name__)
+
def addon_modules_sorted():
modules = addon_utils.modules({})