diff options
Diffstat (limited to 'tests/python/bl_load_addons.py')
-rw-r--r-- | tests/python/bl_load_addons.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/python/bl_load_addons.py b/tests/python/bl_load_addons.py index 01f0b4d72d8..60f44c9452a 100644 --- a/tests/python/bl_load_addons.py +++ b/tests/python/bl_load_addons.py @@ -59,7 +59,8 @@ def _init_addon_blacklist(): def addon_modules_sorted(): - modules = addon_utils.modules({}) + # Pass in an empty module cache to prevent `addon_utils` local module cache being manipulated. + modules = addon_utils.modules(module_cache={}) modules[:] = [ mod for mod in modules if not (mod.__file__.startswith(BLACKLIST_DIRS)) |