Skip to content

Commit 7b41e5a

Browse files
committed
Fix the warning message
1 parent 8b7095f commit 7b41e5a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

jsonschema/tests/test_validators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1198,7 +1198,7 @@ def test_warns_if_meta_schema_specified_was_not_found(self):
11981198
self.assertWarns(
11991199
category=DeprecationWarning,
12001200
message=(
1201-
"This schema: unknownSchema was not found but going to validate with latest draft. "
1201+
"This metaschema was not found but going to validate with latest draft. "
12021202
"This will raise an error in future. "
12031203
),
12041204
# https://tm.tl/9363 :'(

jsonschema/validators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ def validator_for(schema, default=_LATEST_VERSION):
887887
if schema[u"$schema"] not in meta_schemas:
888888
warn(
889889
(
890-
"This metaschema: {metaSchema} was not found but going to validate with latest draft. ".format(metaSchema=schema[u"$schema"])
890+
"This metaschema was not found but going to validate with latest draft. "
891891
"This will raise an error in future. "
892892
),
893893
DeprecationWarning,

0 commit comments

Comments
 (0)