Skip to content

Commit 45e4655

Browse files
committed
test: exempt stub_path from win32 cov gate
_CachedTool.stub_path is the one function here missing `# pragma: win32 no cover`. pytestmark skips every test on win32, so its body never runs there, and covdefaults' 100% gate caught it: windows-2025 jobs failed at 99.53% while every other platform held 100%. Verified against covdefaults' own pragma regex (keys off os.name / sys.platform / sys.implementation.name): inert everywhere but win32, confirmed by an unchanged 100%, 45-passed run on Linux. Assisted-by: Sisyphus:claude-sonnet-5 opencode
1 parent 4857d30 commit 45e4655

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tests/pytest/tool_version_test.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,11 @@ class _CachedTool(NamedTuple):
7272
tool_dir: str
7373
bin_name: str
7474

75-
def stub_path(self, cache_root: Path, version: str) -> Path:
75+
def stub_path( # pragma: win32 no cover
76+
self,
77+
cache_root: Path,
78+
version: str,
79+
) -> Path:
7680
"""Build the `<root>/<tool>/<version>/<binary>` cache path.
7781
7882
Args:

0 commit comments

Comments
 (0)