summaryrefslogtreecommitdiff
path: root/Lib/test/seq_tests.py
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2008-07-15 15:46:38 +0000
committerNick Coghlan <ncoghlan@gmail.com>2008-07-15 15:46:38 +0000
commit796fd9106ae46780bb5b2a7cfb66870bcb8a5254 (patch)
tree6630de7822b5a82b0d741a7664a2164a50faa960 /Lib/test/seq_tests.py
parent5204021e0ae3e8a1988b65917091690aef852433 (diff)
downloadcpython-796fd9106ae46780bb5b2a7cfb66870bcb8a5254.tar.gz
Manual forward port of 64962 - use PyObject_HashNotImplemented as a tp_hash level indicator that the default hash implementation has not been inherited
Diffstat (limited to 'Lib/test/seq_tests.py')
-rw-r--r--Lib/test/seq_tests.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/seq_tests.py b/Lib/test/seq_tests.py
index dd12ee3a05..962cfe12ea 100644
--- a/Lib/test/seq_tests.py
+++ b/Lib/test/seq_tests.py
@@ -212,8 +212,7 @@ class CommonTest(unittest.TestCase):
# So instances of AllEq must be found in all non-empty sequences.
def __eq__(self, other):
return True
- def __hash__(self):
- raise NotImplemented
+ __hash__ = None # Can't meet hash invariant requirements
self.assert_(AllEq() not in self.type2test([]))
self.assert_(AllEq() in self.type2test([1]))