mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Flip equality to use mock calls' __eq__
This commit is contained in:
parent
38f44b4a4a
commit
94ddf54c5a
1 changed files with 1 additions and 1 deletions
|
@ -337,7 +337,7 @@ class _CallList(list):
|
|||
|
||||
for i in range(0, len_self - len_value + 1):
|
||||
sub_list = self[i:i+len_value]
|
||||
if sub_list == value:
|
||||
if value == sub_list:
|
||||
return True
|
||||
return False
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue