Issue 2235: Py3k warnings are now emitted for classes that will no longer inherit a__hash__ implementation from a parent class in Python 3.x. The standard library and test suite have been updated to not emit these warnings.

This commit is contained in:
Nick Coghlan 2008-08-11 15:45:58 +00:00
parent f8d62d23e9
commit 48361f5cbf
18 changed files with 165 additions and 18 deletions

View file

@ -70,6 +70,7 @@ class TestBase(unittest.TestCase):
def __cmp__(self, other):
return cmp(self.key, other.key)
__hash__ = None # Silence Py3k warning
def __repr__(self):
return "Stable(%d, %d)" % (self.key, self.index)