From a72e1231f2d018f48dd7cbbc53a57ad766809ef3 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Wed, 18 Jun 2025 17:21:54 +0500 Subject: [PATCH] test_ids - use more generic exception to fix tests on xmlschema>=4.0 In xmlschema 4.0 it started to throw a more generic XMLSchemaValidationError - I guess there are many things that can trigger validation check and in the new version some other issue gets there first. --- src/ifctester/test/test_ids.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifctester/test/test_ids.py b/src/ifctester/test/test_ids.py index 3763f8159b..bfee66926c 100644 --- a/src/ifctester/test/test_ids.py +++ b/src/ifctester/test/test_ids.py @@ -118,7 +118,7 @@ class TestIds: def test_authoring_an_ids_with_no_specifications_is_invalid(self): specs = ids.Ids() - with pytest.raises(xmlschema.validators.exceptions.XMLSchemaChildrenValidationError): + with pytest.raises(xmlschema.validators.exceptions.XMLSchemaValidationError): specs.to_string() def test_saving_to_xml(self):