mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-37685: Use singletons ALWAYS_EQ and NEVER_EQ in more tests. (GH-15167)
This commit is contained in:
parent
662db125cd
commit
7d44e7a456
9 changed files with 30 additions and 57 deletions
|
@ -3123,6 +3123,8 @@ class _NEVER_EQ:
|
|||
return False
|
||||
def __ne__(self, other):
|
||||
return True
|
||||
def __hash__(self):
|
||||
return 1
|
||||
|
||||
NEVER_EQ = _NEVER_EQ()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue