diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cb9bb33..b328e27 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,11 +9,11 @@ on: jobs: tests: strategy: + fail-fast: false matrix: python-version: [3.6, 3.7, 3.8, 3.9, "3.10", "3.11", "3.12"] os: [windows-2019] runs-on: ${{ matrix.os }} - needs: code-lint steps: - name: Checkout repository uses: actions/checkout@v4 diff --git a/pywin32-tests/test_pywintypes.py b/pywin32-tests/test_pywintypes.py index 81dab38..8a93717 100644 --- a/pywin32-tests/test_pywintypes.py +++ b/pywin32-tests/test_pywintypes.py @@ -11,6 +11,9 @@ import faulthandler import datetime import time +import warnings + +warnings.simplefilter("error") from win32ctypes import pywin32 from win32ctypes.pywin32.pywintypes import error diff --git a/win32ctypes/core/__init__.py b/win32ctypes/core/__init__.py index eb6a401..48d52e2 100644 --- a/win32ctypes/core/__init__.py +++ b/win32ctypes/core/__init__.py @@ -26,10 +26,13 @@ class BackendLoader(Loader): def __init__(self, redirect_module): self.redirect_module = redirect_module - def load_module(self, fullname): - module = importlib.import_module(self.redirect_module) - sys.modules[fullname] = module - return module + def create_module(self, spec): + # TODO: this seems wrong, but let's see the behavior + # please do tell me the right way :] + return importlib.import_module(self.redirect_module) + + def exec_module(self, module): + pass class BackendFinder(MetaPathFinder):