Skip to content

Commit 5d10375

Browse files
committed
Sigh, ugly, but assrtRegexpMatches is deprecated.
1 parent 78d8694 commit 5d10375

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jsonschema/tests/test_validators.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1561,15 +1561,15 @@ def test_draft7_validator_is_the_default(self):
15611561
def test_validation_error_message(self):
15621562
with self.assertRaises(exceptions.ValidationError) as e:
15631563
validators.validate(12, {"type": "string"})
1564-
self.assertRegexpMatches(
1564+
self.assertRegex(
15651565
str(e.exception),
15661566
"(?s)Failed validating u?'.*' in schema.*On instance",
15671567
)
15681568

15691569
def test_schema_error_message(self):
15701570
with self.assertRaises(exceptions.SchemaError) as e:
15711571
validators.validate(12, {"type": 12})
1572-
self.assertRegexpMatches(
1572+
self.assertRegex(
15731573
str(e.exception),
15741574
"(?s)Failed validating u?'.*' in metaschema.*On schema",
15751575
)

0 commit comments

Comments
 (0)