Skip to content
Snippets Groups Projects

CI: move test to pythons 3.8, 3.10 and 3.11

Merged payno requested to merge upgrade_python_ci into master
Files
2
+ 5
4
@@ -30,6 +30,7 @@ module to define and manage Plugin
__authors__ = ["H. Payno"]
import types
import inspect
import logging
import os
@@ -82,9 +83,9 @@ def get_plugins_instances(directory: str):
):
full_path = os.path.join(directory, file_)
try:
mod = SourceFileLoader( # pylint: disable=E1120
file_, full_path
).load_module()
loader = SourceFileLoader(file_, full_path) # pylint: disable=E1120
mod = types.ModuleType(loader.name)
loader.exec_module(mod)
except Exception:
_logger.warning("Fail to import " + full_path)
else:
@@ -100,7 +101,7 @@ def _load_plugin_from_module(module) -> list:
# filter _PluginBase instances only (which are not HDF5Plugin)
if name != HDF5Plugin.__name__ and _PluginBase in inspect.getmro(cls):
instance = cls()
_logger.info("cretate instance of " + name)
_logger.info("create instance of " + name)
instances.append(instance)
return instances
Loading