summaryrefslogtreecommitdiff
path: root/jsonschema/tests/_suite.py
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2022-08-05 10:03:56 +0300
committerJulian Berman <Julian@GrayVines.com>2022-08-05 10:03:56 +0300
commitad302e75b45362697a7944f7767c37a3fb8df7a5 (patch)
tree5666548a3087712ce477ce59dfd42df6fd19a38d /jsonschema/tests/_suite.py
parentf44effcec53ec8d24d8cfa7b338203e9a36f3d4e (diff)
downloadjsonschema-ad302e75b45362697a7944f7767c37a3fb8df7a5.tar.gz
Add a permanent way to drop into a debugger from the suite.
Diffstat (limited to 'jsonschema/tests/_suite.py')
-rw-r--r--jsonschema/tests/_suite.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/jsonschema/tests/_suite.py b/jsonschema/tests/_suite.py
index f053c18..61a8fc8 100644
--- a/jsonschema/tests/_suite.py
+++ b/jsonschema/tests/_suite.py
@@ -204,6 +204,8 @@ class _Test(object):
id_of=Validator.ID_OF,
)
validator = Validator(schema=self.schema, resolver=resolver, **kwargs)
+ if os.environ.get("JSON_SCHEMA_DEBUG", "0") != "0":
+ breakpoint()
validator.validate(instance=self.data)
def validate_ignoring_errors(self, Validator): # pragma: no cover