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

This commit is contained in:
Bastien Montagne 2019-04-18 17:14:17 +02:00
parent d6f9379149
commit 098f75897e
1 changed files with 4 additions and 0 deletions

View File

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