Skip to content

Commit 94ddf54

Browse files
committed
Flip equality to use mock calls' __eq__
1 parent 38f44b4 commit 94ddf54

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 sub_list == value:
340+
if value == sub_list:
341341
return True
342342
return False
343343

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy