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(
7272 if "--cov" in posargs :
7373 _extras .append ("cov" )
7474 posargs .append ("--cov-config=pyproject.toml" )
75+ env ["COVERAGE_CORE" ] = "sysmon"
7576
7677 install_arg = f"-e.[{ ',' .join (_extras )} ]"
7778 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 = [
214214[tool .coverage ]
215215run.source = [" scikit_build_core" ]
216216run.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 = [
219222 ' \.\.\.' ,
220223 ' if typing.TYPE_CHECKING:' ,
221224 ' if TYPE_CHECKING:' ,
You can’t perform that action at this time.
0 commit comments