diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2008-07-15 15:46:38 +0000 |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2008-07-15 15:46:38 +0000 |
commit | 796fd9106ae46780bb5b2a7cfb66870bcb8a5254 (patch) | |
tree | 6630de7822b5a82b0d741a7664a2164a50faa960 /Lib/test/seq_tests.py | |
parent | 5204021e0ae3e8a1988b65917091690aef852433 (diff) | |
download | cpython-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.py | 3 |
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])) |