File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ def _run_tests(
72
72
if "--cov" in posargs :
73
73
_extras .append ("cov" )
74
74
posargs .append ("--cov-config=pyproject.toml" )
75
+ env ["COVERAGE_CORE" ] = "sysmon"
75
76
76
77
install_arg = f"-e.[{ ',' .join (_extras )} ]"
77
78
session .install (install_arg , * install_args , silent = False )
Original file line number Diff line number Diff line change @@ -214,8 +214,11 @@ messages_control.disable = [
214
214
[tool .coverage ]
215
215
run.source = [" scikit_build_core" ]
216
216
run.omit = [" src/scikit_build_core/_vendor" ]
217
- report.exclude_lines = [
218
- ' pragma: no cover' ,
217
+ run.disable_warnings = [
218
+ " module-not-measured" , # Triggers in multithreaded context on build
219
+ " no-sysmon" ,
220
+ ]
221
+ report.exclude_also = [
219
222
' \.\.\.' ,
220
223
' if typing.TYPE_CHECKING:' ,
221
224
' if TYPE_CHECKING:' ,
You can’t perform that action at this time.
0 commit comments