diff options
Diffstat (limited to 'jsonschema/tests/_suite.py')
-rw-r--r-- | jsonschema/tests/_suite.py | 9 |
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: |