[Python-Dev] test failures...

Tim Peters tim_one@email.msn.com
Fri, 23 Jun 2000 22:41:23 -0400


>>   test test_types crashed -- exceptions.OverflowError : long
>> int too long to convert

> This is related to some conversion checking that I added a while back, I
> believe.

Possible but doubt it.

>>   test test_long failed -- int(long(-sys.maxint-1)) overflowed!

> Same thing. Potentially this *should* overflow and the test should expect
> that.

Definitely not on this one:  sys.maxint is by defn the largest positive
Python int, so on any 2's-comp machine -sys.maxint-1 should be a legit
Python int too.  This bogus failure has popped up due to compiler
optimization bugs under at least two older different compilers, though (gcc
being by far the more often reported culprit -- I think the other was one of
those HP compilers that seems to generate more bad code than good <0.3
wink>).

The first step in test failures like this is to recompile with optimization
off.