Skip to content

Commit 91c4a49

Browse files
committed
Fix - lines too long
1 parent 7b41e5a commit 91c4a49

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

jsonschema/tests/test_validators.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1198,8 +1198,8 @@ def test_warns_if_meta_schema_specified_was_not_found(self):
11981198
self.assertWarns(
11991199
category=DeprecationWarning,
12001200
message=(
1201-
"This metaschema was not found but going to validate with latest draft. "
1202-
"This will raise an error in future. "
1201+
"This metaschema was not found but going to validate with the "
1202+
"latest draft. This will raise an error in future. "
12031203
),
12041204
# https://tm.tl/9363 :'(
12051205
filename=sys.modules[self.assertWarns.__module__].__file__,
@@ -1214,7 +1214,9 @@ def test_doesnt_warns_if_meta_schema_not_specified(self):
12141214
self.assertFalse(self.flushWarnings())
12151215

12161216
def test_latest_schema_used_if_meta_schema_not_specified(self):
1217-
lastestSchema = validators.meta_schemas["http://json-schema.org/draft-07/schema#"]
1217+
lastestSchema = validators.meta_schemas[
1218+
"http://json-schema.org/draft-07/schema#"
1219+
]
12181220
schema = validators.validator_for(schema={}, default=lastestSchema)
12191221
self.assertEqual(schema, lastestSchema)
12201222

jsonschema/validators.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -887,8 +887,8 @@ def validator_for(schema, default=_LATEST_VERSION):
887887
if schema[u"$schema"] not in meta_schemas:
888888
warn(
889889
(
890-
"This metaschema was not found but going to validate with latest draft. "
891-
"This will raise an error in future. "
890+
"This metaschema was not found but going to validate with the "
891+
"latest draft. This will raise an error in future. "
892892
),
893893
DeprecationWarning,
894894
stacklevel=2,

0 commit comments

Comments
 (0)