From eead810015fcebcbd0f97531a024c3619fbd7d98 Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Sun, 18 Oct 2026 15:31:28 +0200 Subject: [PATCH] fix: skip the variants test without jsonschema --- tests/test_audit_regressions.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_audit_regressions.py b/tests/test_audit_regressions.py index 2341e83a..67ecbfae 100644 --- a/tests/test_audit_regressions.py +++ b/tests/test_audit_regressions.py @@ -4868,7 +4868,10 @@ class AProfilePathIsTheEmulatorsNotOurs(unittest.TestCase): def test_a_variants_path_is_refused(self): from unittest import mock - from scripts import validate_schemas + try: + from scripts import validate_schemas + except ImportError as exc: + self.skipTest(f"validate_schemas needs jsonschema: {exc}") with tempfile.TemporaryDirectory(dir=TMP_ROOT) as directory: emulators = Path(directory) / "emulators"