diff options
author | Julian Berman <Julian@GrayVines.com> | 2020-10-04 12:00:01 -0400 |
---|---|---|
committer | Julian Berman <Julian@GrayVines.com> | 2020-10-04 12:00:01 -0400 |
commit | 5d10375ac562104e0d436db5054653efbfedab08 (patch) | |
tree | 9fcee1df3e65f9029d5944a53f62c1abe5f0f648 | |
parent | 78d869421b2bf096251bc89ee908ed0cbff62952 (diff) | |
download | jsonschema-5d10375ac562104e0d436db5054653efbfedab08.tar.gz |
Sigh, ugly, but assrtRegexpMatches is deprecated.
-rw-r--r-- | jsonschema/tests/test_validators.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jsonschema/tests/test_validators.py b/jsonschema/tests/test_validators.py index fc6a355..2f017b9 100644 --- a/jsonschema/tests/test_validators.py +++ b/jsonschema/tests/test_validators.py @@ -1561,7 +1561,7 @@ class TestValidate(SynchronousTestCase): def test_validation_error_message(self): with self.assertRaises(exceptions.ValidationError) as e: validators.validate(12, {"type": "string"}) - self.assertRegexpMatches( + self.assertRegex( str(e.exception), "(?s)Failed validating u?'.*' in schema.*On instance", ) @@ -1569,7 +1569,7 @@ class TestValidate(SynchronousTestCase): def test_schema_error_message(self): with self.assertRaises(exceptions.SchemaError) as e: validators.validate(12, {"type": 12}) - self.assertRegexpMatches( + self.assertRegex( str(e.exception), "(?s)Failed validating u?'.*' in metaschema.*On schema", ) |