Update tests python to work with Python 3.12

Tested running with Python 3.12, 3.11, 3.10, 3.6.8
This commit is contained in:
Jake Turner
2024-01-27 15:18:34 +00:00
parent c8d3b6a79d
commit 2cc4558815
+1 -1
View File
@@ -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