summaryrefslogtreecommitdiff
path: root/jsonschema
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2022-08-28 13:07:55 +0300
committerJulian Berman <Julian@GrayVines.com>2022-08-28 13:07:55 +0300
commit167ac4b7da572512d046f31addc106ebb043b894 (patch)
tree9757f5942647733b4e4a92328f33e95055fecfdf /jsonschema
parent6693f938af9916cc036dcb3c975544b9c5dc8de7 (diff)
downloadjsonschema-167ac4b7da572512d046f31addc106ebb043b894.tar.gz
Don't skip tests while debugging.
This will maybe get annoying if debugging many at once, but works better for specifically mentioning one test.
Diffstat (limited to 'jsonschema')
-rw-r--r--jsonschema/tests/_suite.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/jsonschema/tests/_suite.py b/jsonschema/tests/_suite.py
index 0ee72b7..f3129e0 100644
--- a/jsonschema/tests/_suite.py
+++ b/jsonschema/tests/_suite.py
@@ -191,7 +191,7 @@ class _Test:
fn.__name__ = self.method_name
reason = skip(self)
- if reason is None:
+ if reason is None or os.environ.get("JSON_SCHEMA_DEBUG", "0") != "0":
return fn
elif os.environ.get("JSON_SCHEMA_EXPECTED_FAILURES", "0") != "0":
return unittest.expectedFailure(fn)