Skip to content

Commit

Permalink
Cowboy code fixing benchmarking.
Browse files Browse the repository at this point in the history
Refs: #524.

Naming sucks.
  • Loading branch information
Julian committed Feb 25, 2019
1 parent 028392a commit 45e2c0c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions jsonschema/tests/_suite.py
Expand Up @@ -72,11 +72,12 @@ class Version(object):
name = attr.ib()

def benchmark(self, runner): # pragma: no cover
for test in self.tests():
runner.bench_func(
name=test.fully_qualified_name,
func=test.validate_ignoring_errors,
)
for suite in self.tests():
for test in suite:
runner.bench_func(
name=test.fully_qualified_name,
func=test.validate_ignoring_errors,
)

def tests(self):
return (
Expand Down

0 comments on commit 45e2c0c

Please sign in to comment.