aports/main/py3-xmlschema/fix-tests-with-py3.12.5.patch
Celeste 7b1e5afdcb main/py3-xmlschema: fix tests with python 3.12.5
expected exception changed: "Can't pickle" -> "Can't get local object"
2024-08-22 03:11:59 +00:00

16 lines
695 B
Diff

Patch-Source: https://github.com/sissaschool/xmlschema/issues/412
diff --git a/tests/validators/test_schemas.py b/tests/validators/test_schemas.py
index 5d23b86f9..72510e6be 100644
--- a/tests/validators/test_schemas.py
+++ b/tests/validators/test_schemas.py
@@ -702,7 +702,7 @@ class TestXMLSchema10(XsdValidatorTestCase):
with self.assertRaises((pickle.PicklingError, AttributeError)) as ec:
pickle.dumps(schema)
- self.assertIn("Can't pickle", str(ec.exception))
+ self.assertIn("Can't get local object", str(ec.exception))
def test_meta_schema_validation(self):
self.assertTrue(self.schema_class.meta_schema.is_valid(self.vh_xsd_file))