errors when doing 'make test'
Al-Amerrho H. Amerin
al_amerin at yahoo.com
Sat Feb 5 03:21:43 EST 2000
I've downloaded the latest CVS snapshot. I was able to compile without
any problems
and everything seems to be okay. I can run and use python. However, when
I do 'make test'
as the README says, I get these 2 errors:
2 tests failed: test_types test_long
I did the following to determine the exact problem:
$ python 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 "test_types.py", line 89, in ?
if int(long(x)) != x: raise TestFailed, 'long op'
OverflowError: long int too long to convert
$
$ python test_long.py
long / * % divmod
long bit-operation identities
long str/hex/oct/atol
long miscellaneous operations
Traceback (innermost last):
File "test_long.py", line 257, in ?
test_misc()
File "test_long.py", line 231, in test_misc
raise TestFailed, "int(long(-sys.maxint-1)) overflowed!"
test_support -- test failed: int(long(-sys.maxint-1)) overflowed!
These errors seem to be related to 'sys.maxint'. In my box its value is:
2147483647
My system:
Linux version 2.2.9-27mdk (root at locutus.mandrakesoft.com) (gcc version
pgcc-2.91.66 19990314 (egcs-1.1.2 release)) #1 Mon Jun 14 16:44:05 CEST
1999
Detected 350805109 Hz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 699.60 BogoMIPS
Memory: 63164k/65472k available (964k kernel code, 408k reserved, 888k
data, 48k init)
VFS: Diskquotas version dquot_6.4.0 initialized
CPU: AMD AMD-K6(tm) 3D processor stepping 0c
My python installation:
Python 1.5.2+ (#2, Feb 5 2000, 02:07:33) [GCC pgcc-2.91.66 19990314
(egcs-1.1.2 release)] on linux2
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
I hope someone could tell me what's wrong with my installation. Thanks!
More information about the Python-list
mailing list