Commit 4e785d42 authored by Stefan Behnel's avatar Stefan Behnel

Try to make cython.inline() tests pass in Py3.8 on Windows by adhering to the...

Try to make cython.inline() tests pass in Py3.8 on Windows by adhering to the recommended module loading pattern.
parent 8ae11f5c
......@@ -37,9 +37,14 @@ if sys.version_info[:2] < (3, 3):
def load_dynamic(name, module_path):
return imp.load_dynamic(name, module_path)
else:
from importlib.machinery import ExtensionFileLoader
import importlib.util as _importlib_util
def load_dynamic(name, module_path):
return ExtensionFileLoader(name, module_path).load_module()
spec = _importlib_util.spec_from_file_location(name, module_path)
module = _importlib_util.module_from_spec(spec)
# sys.modules[name] = module
spec.loader.exec_module(module)
return module
class UnboundSymbols(EnvTransform, SkipDeclarations):
def __init__(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment