Skip to content

Commit aec372b

Browse files
committed
Minor improvements to test coverage (via ignoring).
1 parent 362ba5f commit aec372b

File tree

3 files changed

+3
-28
lines changed

3 files changed

+3
-28
lines changed

jsonschema/_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class Unset:
4040
An as-of-yet unset attribute or unprovided default parameter.
4141
"""
4242

43-
def __repr__(self):
43+
def __repr__(self): # pragma: no cover
4444
return "<unset>"
4545

4646

jsonschema/tests/_helpers.py

Lines changed: 0 additions & 25 deletions
This file was deleted.

jsonschema/tests/_suite.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def fn(this):
237237
reason = skip(self)
238238
if reason is None or os.environ.get("JSON_SCHEMA_DEBUG", "0") != "0":
239239
return fn
240-
elif os.environ.get("JSON_SCHEMA_EXPECTED_FAILURES", "0") != "0":
240+
elif os.environ.get("JSON_SCHEMA_EXPECTED_FAILURES", "0") != "0": # pragma: no cover # noqa: E501
241241
return unittest.expectedFailure(fn)
242242
else:
243243
return unittest.skip(reason)(fn)
@@ -249,7 +249,7 @@ def validate(self, Validator, **kwargs):
249249
registry=self._remotes,
250250
**kwargs,
251251
)
252-
if os.environ.get("JSON_SCHEMA_DEBUG", "0") != "0":
252+
if os.environ.get("JSON_SCHEMA_DEBUG", "0") != "0": # pragma: no cover
253253
breakpoint()
254254
validator.validate(instance=self.data)
255255

0 commit comments

Comments
 (0)