summaryrefslogtreecommitdiff
path: root/jsonschema/tests/_suite.py
diff options
context:
space:
mode:
Diffstat (limited to 'jsonschema/tests/_suite.py')
-rw-r--r--jsonschema/tests/_suite.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/jsonschema/tests/_suite.py b/jsonschema/tests/_suite.py
index 1735a74..931dd69 100644
--- a/jsonschema/tests/_suite.py
+++ b/jsonschema/tests/_suite.py
@@ -208,13 +208,8 @@ class _Test(object):
store=self._remotes,
id_of=Validator.ID_OF,
)
- jsonschema.validate(
- instance=self.data,
- schema=self.schema,
- cls=Validator,
- resolver=resolver,
- **kwargs,
- )
+ validator = Validator(schema=self.schema, resolver=resolver, **kwargs)
+ validator.validate(instance=self.data)
def validate_ignoring_errors(self, Validator): # pragma: no cover
try: