Fix for test_class.py on Win64. id(self), which on Win64 returns a

PyLong, was used for the return value of a class __hash__ method, which
*must* return a PyInt. Solution: hash() the id(self) value.
This commit is contained in:
Trent Mick 2000-10-04 17:50:59 +00:00
parent b2c2c9e977
commit d68d0a6f5a

View file

@ -71,7 +71,7 @@ class AllTests:
def __hash__(self, *args):
print "__hash__:", args
return id(self)
return hash(id(self))
def __str__(self, *args):
print "__str__:", args