diff options
author | Julian Berman <Julian@GrayVines.com> | 2018-11-25 14:10:57 -0500 |
---|---|---|
committer | Julian Berman <Julian@GrayVines.com> | 2018-11-25 14:10:57 -0500 |
commit | 8e8fc6edb5a58246b76c705ca345c29f81c8e4b6 (patch) | |
tree | 3d2d7d6988e97a19e4585d0a539b4ca0053d59a0 /jsonschema | |
parent | 3ececbd66dc8190287e7c9cd7c87387c637f1d19 (diff) | |
download | jsonschema-8e8fc6edb5a58246b76c705ca345c29f81c8e4b6.tar.gz |
At least kill the last remaining use of mock.Mock
Diffstat (limited to 'jsonschema')
-rw-r--r-- | jsonschema/tests/test_validators.py | 2 |
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, |