We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78d8694 commit 5d10375Copy full SHA for 5d10375
jsonschema/tests/test_validators.py
@@ -1561,15 +1561,15 @@ def test_draft7_validator_is_the_default(self):
1561
def test_validation_error_message(self):
1562
with self.assertRaises(exceptions.ValidationError) as e:
1563
validators.validate(12, {"type": "string"})
1564
- self.assertRegexpMatches(
+ self.assertRegex(
1565
str(e.exception),
1566
"(?s)Failed validating u?'.*' in schema.*On instance",
1567
)
1568
1569
def test_schema_error_message(self):
1570
with self.assertRaises(exceptions.SchemaError) as e:
1571
validators.validate(12, {"type": 12})
1572
1573
1574
"(?s)Failed validating u?'.*' in metaschema.*On schema",
1575
0 commit comments