From 2cc4558815fb192a31838153631aab2465e3f5e9 Mon Sep 17 00:00:00 2001 From: Jake Turner Date: Sat, 27 Jan 2024 15:18:34 +0000 Subject: [PATCH] Update tests python to work with Python 3.12 Tested running with Python 3.12, 3.11, 3.10, 3.6.8 --- util/test/tests/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/test/tests/__init__.py b/util/test/tests/__init__.py index 80f339c26..0f6b02c91 100644 --- a/util/test/tests/__init__.py +++ b/util/test/tests/__init__.py @@ -3,5 +3,5 @@ import pkgutil __all__ = [] for loader, module_name, is_pkg in pkgutil.walk_packages(__path__): __all__.append(module_name) - module = loader.find_module(module_name).load_module(module_name) + module = loader.find_spec(module_name).loader.load_module(module_name) globals()[module_name] = module