mirror of
https://github.com/hakril/PythonForWindows
synced 2026-06-08 14:31:45 +00:00
Improve test config/code for better test coverage in CI (#49)
* Improve test detection of other-bitness installation status * Install capstone-windows in CI for better test coverage --------- Co-authored-by: clement rouault <clement.rouault@exatrack.com>
This commit is contained in:
@@ -56,8 +56,8 @@ jobs:
|
||||
py -${{ matrix.python-version}}-32 setup.py install
|
||||
py -${{ matrix.python-version}}-64 setup.py install
|
||||
|
||||
- name: Installing pytest
|
||||
run: py -${{ matrix.python-version}}-${{ matrix.python-bitness-to-test}} -m pip install pytest
|
||||
- name: Installing pytest & capstone-windows
|
||||
run: py -${{ matrix.python-version}}-${{ matrix.python-bitness-to-test}} -m pip install pytest capstone-windows
|
||||
|
||||
# Testing
|
||||
- name: Testing
|
||||
|
||||
+1
-1
@@ -53,7 +53,7 @@ def check_injected_python_installed(request):
|
||||
raise ValueError("Could not find the fixture name of the injected python")
|
||||
procparam = procparams[0]
|
||||
proc = request.getfixturevalue(procparam)
|
||||
if not python_is_installed[proc.bitness]:
|
||||
if not windows.injection.find_python_dll_to_inject(proc.bitness):
|
||||
pytest.skip("Python {0}b not installed -> skipping test with python injection into {0}b process".format(proc.bitness))
|
||||
return None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user