diff options
author | Julian Berman <Julian@GrayVines.com> | 2018-12-27 09:48:15 +0000 |
---|---|---|
committer | Julian Berman <Julian@GrayVines.com> | 2018-12-27 09:48:15 +0000 |
commit | 113394fc2ee6b576dc290108e33d2e4661eb6fba (patch) | |
tree | 1d0c9d56248dcd827575011675e5599c8ec7870c | |
parent | 6f10ce6ce2379df94a17ea41c671c71b107ea99f (diff) | |
download | jsonschema-113394fc2ee6b576dc290108e33d2e4661eb6fba.tar.gz |
Kill some coverage noise.
-rw-r--r-- | jsonschema/tests/_suite.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/jsonschema/tests/_suite.py b/jsonschema/tests/_suite.py index cebf11f..5717f97 100644 --- a/jsonschema/tests/_suite.py +++ b/jsonschema/tests/_suite.py @@ -24,7 +24,7 @@ def _find_suite(): return FilePath(root) root = FilePath(jsonschema.__file__).parent().sibling("json") - if not root.isdir(): + if not root.isdir(): # pragma: no cover raise ValueError( ( "Can't find the JSON-Schema-Test-Suite directory. " @@ -51,7 +51,7 @@ class Suite(object): for name, schema in json.loads(remotes.decode("utf-8")).items() } - def benchmark(self, runner): + def benchmark(self, runner): # pragma: no cover for name in validators: self.version(name=name).benchmark(runner=runner) @@ -71,7 +71,7 @@ class Version(object): name = attr.ib() - def benchmark(self, runner): + def benchmark(self, runner): # pragma: no cover for test in self.tests(): runner.bench_func( name=test.fully_qualified_name, @@ -123,7 +123,7 @@ class Version(object): try: cls.__module__ = _someone_save_us_the_module_of_the_caller() - except Exception: + except Exception: # pragma: no cover # We're doing crazy things, so if they go wrong, like a function # behaving differently on some other interpreter, just make them # not happen. @@ -213,7 +213,7 @@ class _Test(object): **kwargs ) - def validate_ignoring_errors(self, **kwargs): + def validate_ignoring_errors(self, **kwargs): # pragma: no cover try: self.validate(**kwargs) except jsonschema.ValidationError: |