Skip to content

Commit 113394f

Browse files
committed
Kill some coverage noise.
1 parent 6f10ce6 commit 113394f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

jsonschema/tests/_suite.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def _find_suite():
2424
return FilePath(root)
2525

2626
root = FilePath(jsonschema.__file__).parent().sibling("json")
27-
if not root.isdir():
27+
if not root.isdir(): # pragma: no cover
2828
raise ValueError(
2929
(
3030
"Can't find the JSON-Schema-Test-Suite directory. "
@@ -51,7 +51,7 @@ def _remotes(self):
5151
for name, schema in json.loads(remotes.decode("utf-8")).items()
5252
}
5353

54-
def benchmark(self, runner):
54+
def benchmark(self, runner): # pragma: no cover
5555
for name in validators:
5656
self.version(name=name).benchmark(runner=runner)
5757

@@ -71,7 +71,7 @@ class Version(object):
7171

7272
name = attr.ib()
7373

74-
def benchmark(self, runner):
74+
def benchmark(self, runner): # pragma: no cover
7575
for test in self.tests():
7676
runner.bench_func(
7777
name=test.fully_qualified_name,
@@ -123,7 +123,7 @@ def to_unittest_testcase(self, *suites, **kwargs):
123123

124124
try:
125125
cls.__module__ = _someone_save_us_the_module_of_the_caller()
126-
except Exception:
126+
except Exception: # pragma: no cover
127127
# We're doing crazy things, so if they go wrong, like a function
128128
# behaving differently on some other interpreter, just make them
129129
# not happen.
@@ -213,7 +213,7 @@ def validate(self, Validator=None, **kwargs):
213213
**kwargs
214214
)
215215

216-
def validate_ignoring_errors(self, **kwargs):
216+
def validate_ignoring_errors(self, **kwargs): # pragma: no cover
217217
try:
218218
self.validate(**kwargs)
219219
except jsonschema.ValidationError:

0 commit comments

Comments
 (0)