From 8e8fc6edb5a58246b76c705ca345c29f81c8e4b6 Mon Sep 17 00:00:00 2001 From: Julian Berman Date: Sun, 25 Nov 2018 14:10:57 -0500 Subject: [PATCH] At least kill the last remaining use of mock.Mock --- jsonschema/tests/test_validators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsonschema/tests/test_validators.py b/jsonschema/tests/test_validators.py index b4ce6667e..f51967897 100644 --- a/jsonschema/tests/test_validators.py +++ b/jsonschema/tests/test_validators.py @@ -901,7 +901,7 @@ def test_valid_instances_are_valid(self): ) 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,