Kaydet (Commit) d68d0a6f authored tarafından Trent Mick's avatar Trent Mick

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.
üst b2c2c9e9
...@@ -71,7 +71,7 @@ class AllTests: ...@@ -71,7 +71,7 @@ class AllTests:
def __hash__(self, *args): def __hash__(self, *args):
print "__hash__:", args print "__hash__:", args
return id(self) return hash(id(self))
def __str__(self, *args): def __str__(self, *args):
print "__str__:", args print "__str__:", args
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment