Switch to ebb-lint, and cry a bit inside.
This commit is contained in:
parent
d0f2ef740b
commit
c8af2b376c
|
@ -196,7 +196,7 @@ class TestValidationErrorMessages(unittest.TestCase):
|
|||
u"additionalProperties": False,
|
||||
u"patternProperties": {
|
||||
u"^abc$": {u"type": u"string"},
|
||||
u"^def$": {u"type": u"string"}
|
||||
u"^def$": {u"type": u"string"},
|
||||
}}
|
||||
message = self.message_for({u"zebra": 123}, schema,
|
||||
cls=Draft4Validator)
|
||||
|
|
|
@ -14,9 +14,14 @@ from jsonschema.compat import (
|
|||
Sequence, urljoin, urlsplit, urldefrag, unquote, urlopen,
|
||||
str_types, int_types, iteritems, lru_cache,
|
||||
)
|
||||
from jsonschema.exceptions import ErrorTree # Backwards compat # noqa: F401
|
||||
from jsonschema.exceptions import RefResolutionError, SchemaError, UnknownType
|
||||
|
||||
# Sigh. https://gitlab.com/pycqa/flake8/issues/280
|
||||
# https://github.com/pyga/ebb-lint/issues/7
|
||||
# Imported for backwards compatibility.
|
||||
from jsonschema.exceptions import ErrorTree
|
||||
ErrorTree
|
||||
|
||||
|
||||
_unset = _utils.Unset()
|
||||
|
||||
|
|
Loading…
Reference in New Issue