Skip to content

Commit ad99a9d

Browse files
committed
Revert "Flip equality to use mock calls' __eq__"
This reverts commit 94ddf54.
1 parent b4c7d78 commit ad99a9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/unittest/mock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ def __contains__(self, value):
337337

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

0 commit comments

Comments
 (0)