From db58478669f8bf02a84a2a1b00314251ecb8164b Mon Sep 17 00:00:00 2001 From: Krzysztof kuhy Rudnicki Date: Thu, 19 Nov 2026 13:30:55 +0100 Subject: [PATCH] repo_contract sweep tests: narrow the no-cover pragma Co-Authored-By: Claude Opus 5.5 --- repo_contract/tests/test_sweep.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repo_contract/tests/test_sweep.py b/repo_contract/tests/test_sweep.py index cb613b7..8395ab4 100644 --- a/repo_contract/tests/test_sweep.py +++ b/repo_contract/tests/test_sweep.py @@ -51,7 +51,7 @@ def no_walk(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> Path: monkeypatch.setenv("HOME", str(tmp_path / "home")) def boom(roots: list[Path]) -> list[Path]: - raise AssertionError(f"walked {roots}") + raise AssertionError(f"walked {roots}") # pragma: no cover - regression only monkeypatch.setattr("repo_contract.sweep.find_repos", boom) return tmp_path / "default" / "SWEEP.md"