diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/python/bl_load_addons.py | 6 | ||||
-rw-r--r-- | tests/python/bl_load_py_modules.py | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/python/bl_load_addons.py b/tests/python/bl_load_addons.py index e404e2340ce..d54d5c3c45f 100644 --- a/tests/python/bl_load_addons.py +++ b/tests/python/bl_load_addons.py @@ -64,7 +64,7 @@ def addon_modules_sorted(): def disable_addons(): # first disable all - addons = bpy.context.user_preferences.addons + addons = bpy.context.preferences.addons for mod_name in list(addons.keys()): addon_utils.disable(mod_name, default_set=True) assert(bool(addons) is False) @@ -75,7 +75,7 @@ def test_load_addons(): disable_addons() - addons = bpy.context.user_preferences.addons + addons = bpy.context.preferences.addons addons_fail = [] @@ -97,7 +97,7 @@ def test_load_addons(): def reload_addons(do_reload=True, do_reverse=True): modules = addon_modules_sorted() - addons = bpy.context.user_preferences.addons + addons = bpy.context.preferences.addons disable_addons() diff --git a/tests/python/bl_load_py_modules.py b/tests/python/bl_load_py_modules.py index b7b0db76b63..be7f426d993 100644 --- a/tests/python/bl_load_py_modules.py +++ b/tests/python/bl_load_py_modules.py @@ -104,7 +104,7 @@ def source_list(path, filename_check=None): def load_addons(): modules = addon_modules_sorted() - addons = bpy.context.user_preferences.addons + addons = bpy.context.preferences.addons # first disable all for mod_name in list(addons.keys()): |