summaryrefslogtreecommitdiff
path: root/jsonschema/tests/test_validators.py
diff options
context:
space:
mode:
Diffstat (limited to 'jsonschema/tests/test_validators.py')
-rw-r--r--jsonschema/tests/test_validators.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/jsonschema/tests/test_validators.py b/jsonschema/tests/test_validators.py
index b4ce666..f519678 100644
--- a/jsonschema/tests/test_validators.py
+++ b/jsonschema/tests/test_validators.py
@@ -901,7 +901,7 @@ class ValidatorTestMixin(MetaSchemaTestsMixin, object):
)
def test_invalid_instances_are_not_valid(self):
- errors = iter([mock.Mock()])
+ errors = iter([ValidationError("An error!")])
with mock.patch.object(
self.validator, "iter_errors", return_value=errors,