From faf444a47676193d70a6dbfa60f9471ea6f4ef92 Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Fri, 6 Nov 2026 16:18:35 +0100 Subject: [PATCH] fix: hold the exit status page to code 3 --- tests/test_site_wiki.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_site_wiki.py b/tests/test_site_wiki.py index cb0e17e7d..49adab0fe 100644 --- a/tests/test_site_wiki.py +++ b/tests/test_site_wiki.py @@ -613,10 +613,10 @@ class ExitStatusAndPinnedInstaller(unittest.TestCase): self.text = _wiki("installer.md") self.source = (REPO_ROOT / "install.py").read_text(encoding="utf-8") - def test_the_check_event_tells_missing_from_failure(self): + def test_the_code_tells_missing_from_failure(self): section = _flat(_section(self.text, "Exit status")) - self.assertIn("read the `check` event", section) - self.assertIn("`missing` and `wrong_hash` count what is left", section) + self.assertIn("`--check` tells missing files (`3`) from a failure (`1`) by its code", section) + self.assertIn("is left in `missing` and `wrong_hash`", section) fields = re.search(r'"check": \(([^)]*)\)', self.source).group(1) for field in ("missing", "wrong_hash"): with self.subTest(field=field):