Skip to content

Commit 8e8fc6e

Browse files
committed
At least kill the last remaining use of mock.Mock
1 parent 3ececbd commit 8e8fc6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jsonschema/tests/test_validators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ def test_valid_instances_are_valid(self):
901901
)
902902

903903
def test_invalid_instances_are_not_valid(self):
904-
errors = iter([mock.Mock()])
904+
errors = iter([ValidationError("An error!")])
905905

906906
with mock.patch.object(
907907
self.validator, "iter_errors", return_value=errors,

0 commit comments

Comments
 (0)