From cab70e16b3aac11239c50a7486bd0b8fd74bcfa9 Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Sun, 18 Oct 2026 03:24:43 +0200 Subject: [PATCH] fix: skip the citation checks without jsonschema The doubled-path tests import validate_schemas, which needs jsonschema; without it the suite erred instead of skipping, which the optional dependency check refuses. --- tests/test_audit_regressions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_audit_regressions.py b/tests/test_audit_regressions.py index cf8b9647..5349b28c 100644 --- a/tests/test_audit_regressions.py +++ b/tests/test_audit_regressions.py @@ -310,6 +310,7 @@ class UnreachableCitationRegressions(unittest.TestCase): self.assertEqual(errors, []) +@unittest.skipUnless(HAS_JSONSCHEMA, "validate_schemas needs jsonschema") class DoubledCitationPaths(unittest.TestCase): """primehack cited Source/Core/Core/IOS/USB/Bluetooth/ twice in a row in a comment: no revision holds that path, and the parsed document never @@ -335,7 +336,6 @@ class DoubledCitationPaths(unittest.TestCase): with self.subTest(citation=good): self.assertFalse(self._hits(good)) - @unittest.skipUnless(HAS_JSONSCHEMA, "validating a schema needs jsonschema") def test_the_corpus_carries_none(self): import validate_schemas