diff options
author | Tim Peters <tim.peters@gmail.com> | 2006-04-11 00:43:27 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2006-04-11 00:43:27 (GMT) |
commit | 6902b44406ba2940dd7f34b7ec77e2ea13ff2e66 (patch) | |
tree | 59d904459d6395aeaca49825ab6f9ba8931f42b0 /Lib/test/test_descr.py | |
parent | 16ed521dd707a889bb8a92a740e48da51a1c2c53 (diff) | |
download | cpython-6902b44406ba2940dd7f34b7ec77e2ea13ff2e66.zip cpython-6902b44406ba2940dd7f34b7ec77e2ea13ff2e66.tar.gz cpython-6902b44406ba2940dd7f34b7ec77e2ea13ff2e66.tar.bz2 |
Try to repair more new buildbot failures in "x86 OpenBSD trunk", due
to that id() can now return a Python long on a 32-bit box that allocates
addresses "with the sign bit set".
test_set.py test_subclass_with_custom_hash(): it's never been portably
legal for a __hash__() method to return id(self), but on 32-bit boxes
that never caused a problem before it became possible for id() to
return a Python long. Changed __hash__ here to return a Python int
regardless of platform.
test_descr.py specials():
vereq(hash(c1), id(c1))
has never been a correct test -- just removed it (hash() is always
a Python int; id() may be a Python long).
Diffstat (limited to 'Lib/test/test_descr.py')
0 files changed, 0 insertions, 0 deletions