Skip to content

Commit

Permalink
At least kill the last remaining use of mock.Mock
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian committed Nov 25, 2018
1 parent 3ececbd commit 8e8fc6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jsonschema/tests/test_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8e8fc6e

Please sign in to comment.