fix: skip the variants test without jsonschema

This commit is contained in:
Abdessamad Derraz committed 2026-10-18 15:31:28 +02:00
1 parent 3a29d5b56a
commit eead810015
1 file changed
+4 -1
+4 -1
View File
@@ -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"