@@ -24,7 +24,7 @@ def _find_suite():
24
24
return FilePath (root )
25
25
26
26
root = FilePath (jsonschema .__file__ ).parent ().sibling ("json" )
27
- if not root .isdir ():
27
+ if not root .isdir (): # pragma: no cover
28
28
raise ValueError (
29
29
(
30
30
"Can't find the JSON-Schema-Test-Suite directory. "
@@ -51,7 +51,7 @@ def _remotes(self):
51
51
for name , schema in json .loads (remotes .decode ("utf-8" )).items ()
52
52
}
53
53
54
- def benchmark (self , runner ):
54
+ def benchmark (self , runner ): # pragma: no cover
55
55
for name in validators :
56
56
self .version (name = name ).benchmark (runner = runner )
57
57
@@ -71,7 +71,7 @@ class Version(object):
71
71
72
72
name = attr .ib ()
73
73
74
- def benchmark (self , runner ):
74
+ def benchmark (self , runner ): # pragma: no cover
75
75
for test in self .tests ():
76
76
runner .bench_func (
77
77
name = test .fully_qualified_name ,
@@ -123,7 +123,7 @@ def to_unittest_testcase(self, *suites, **kwargs):
123
123
124
124
try :
125
125
cls .__module__ = _someone_save_us_the_module_of_the_caller ()
126
- except Exception :
126
+ except Exception : # pragma: no cover
127
127
# We're doing crazy things, so if they go wrong, like a function
128
128
# behaving differently on some other interpreter, just make them
129
129
# not happen.
@@ -213,7 +213,7 @@ def validate(self, Validator=None, **kwargs):
213
213
** kwargs
214
214
)
215
215
216
- def validate_ignoring_errors (self , ** kwargs ):
216
+ def validate_ignoring_errors (self , ** kwargs ): # pragma: no cover
217
217
try :
218
218
self .validate (** kwargs )
219
219
except jsonschema .ValidationError :
0 commit comments