Skip to content

Commit

Permalink
Revert "Flip equality to use mock calls' __eq__"
Browse files Browse the repository at this point in the history
This reverts commit 94ddf54.
  • Loading branch information
ElizabethU committed Jul 14, 2019
1 parent b4c7d78 commit ad99a9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/unittest/mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ def __contains__(self, value):

for i in range(0, len_self - len_value + 1):
sub_list = self[i:i+len_value]
if value == sub_list:
if sub_list == value:
return True
return False

Expand Down

0 comments on commit ad99a9d

Please sign in to comment.