test_repr() fails when memory allocations are handed out at high addresses. test_repr test test_repr failed -- Traceback (most recent call last): File "/home/fdrake/projects/python/trunk/Lib/test/test_repr.py", line 109, in test_instance eq(r(i3), ("<ClassWithFailingRepr instance at %x>"%id(i3))) AssertionError: '' != '<ClassWithFailingRepr instance at -42373cf4>'
Logged In: YES user_id=31435 Fred, please try the attached patch. If it works on your box, just check it in. repr.py was doing a dumb thing, assuming that hex(number) always starts with '0x'. The patch also does a dumb thing, but it's the same as the dumb thing test_repr.py does .