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.
This commit is contained in:
Andrej730
2025-06-18 17:21:54 +05:00
parent 47da4ef3ae
commit a72e1231f2
+1 -1
View File
@@ -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):