mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 22:33:33 +00:00
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:
@@ -118,7 +118,7 @@ class TestIds:
|
|||||||
|
|
||||||
def test_authoring_an_ids_with_no_specifications_is_invalid(self):
|
def test_authoring_an_ids_with_no_specifications_is_invalid(self):
|
||||||
specs = ids.Ids()
|
specs = ids.Ids()
|
||||||
with pytest.raises(xmlschema.validators.exceptions.XMLSchemaChildrenValidationError):
|
with pytest.raises(xmlschema.validators.exceptions.XMLSchemaValidationError):
|
||||||
specs.to_string()
|
specs.to_string()
|
||||||
|
|
||||||
def test_saving_to_xml(self):
|
def test_saving_to_xml(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user