[Bf-blender-cvs] [098f75897e3] master: PyTests: do not try to load non-2.8-ready add-ons.

Bastien Montagne noreply at git.blender.org
Thu Apr 18 17:15:03 CEST 2019


Commit: 098f75897e3ddf4bb93f64cecb322d7370127419
Author: Bastien Montagne
Date:   Thu Apr 18 17:14:17 2019 +0200
Branches: master
https://developer.blender.org/rB098f75897e3ddf4bb93f64cecb322d7370127419

PyTests: do not try to load non-2.8-ready add-ons.

===================================================================

M	tests/python/bl_load_addons.py

===================================================================

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({})



More information about the Bf-blender-cvs mailing list