Problems with 'make test' with Python 1..5.2
Christopher J. Kucera
ckucera at globalcrossing.com
Mon May 21 13:31:49 EDT 2001
Hello, all.
I'm having some problems with Python 1.5.2. It's on a Pentium system
running Linux kernel 2.2.9 (admittedly a bit old). It builds just fine,
but the tests "test_types" and "test_long" fail. Here's test_types:
> [pez at amber Python-1.5.2]$ ./python Lib/test/test_types.py
> 6. Built-in types
> 6.1 Truth value testing
> 6.2 Boolean operations
> 6.3 Comparisons
> 6.4 Numeric types (mostly conversions)
> 6.4.1 32-bit integers
> 6.4.2 Long integers
> Traceback (innermost last):
> File "Lib/test/test_types.py", line 89, in ?
> if int(long(x)) != x: raise TestFailed, 'long op'
> OverflowError: long int too long to convert
The oddest thing about this is that I can't get this behavior
to reproduce by running the commands from the Python interpreter
myself. test_long fails like so:
> [pez at amber Python-1.5.2]$ ./python Lib/test/test_long.py
> long / * % divmod
> long bit-operation identities
> long str/hex/oct/atol
> long miscellaneous operations
> Traceback (innermost last):
> File "Lib/test/test_long.py", line 251, in ?
> test_misc()
> File "Lib/test/test_long.py", line 225, in test_misc
> raise TestFailed, "int(long(-sys.maxint-1)) overflowed!"
> test_support -- test failed: int(long(-sys.maxint-1)) overflowed!
Is there something to be done, or am I stuck with these errors?
Thanks much for any help you may be able to give!
-CJ
More information about the Python-list
mailing list