[Python-bugs-list] 3 failed tests after install (PR#119)

guido@CNRI.Reston.VA.US guido@CNRI.Reston.VA.US
Tue, 26 Oct 1999 22:34:27 -0400 (EDT)


There's no reason to submit this as a bug report yet -- most likely
this is a platform bug.

> Full_Name: jerald s brodkey
> Version: 1.52
> OS: Mandrake 6.1
> Submission from: dyn1-tnt1-120.cleveland.oh.ameritech.net (199.179.175.120)
> 
> test_long output:
> long / * % divmod
> long bit-operation identities
> long str/hex/oct/atol
> long miscellaneous operations
> Traceback (innermost last):
>   File "/home/jerry/python/Python-1.5.2/Lib/test/test_long.py", line 251, in ?
>     test_misc()
>   File "/home/jerry/python/Python-1.5.2/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!

Hm.  Strange.  Can you enter Python interactively and try to print the
values of these expressions?

       sys.maxint
       -sys.maxint-1
       long(-sys.maxint-1)
       int(long(-sys.maxint-1))

Please save the session and mail to me.

> test_socket output:
> socket.error
> Traceback (innermost last):
>   File "/home/jerry/python/Python-1.5.2/Lib/test/test_socket.py", line 71, in ?
>     ip = socket.gethostbyname(hostname)
> socket.error: host not found

This is common if your internet configuration doesn't have a DNS
setup; you can ignore it.

> test_types output:
> 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 "/home/jerry/python/Python-1.5.2/Lib/test/test_types.py", line 89, in ?
>     if int(long(x)) != x: raise TestFailed, 'long op'
> OverflowError: long int too long to convert

Looks like the same one you had before.

What kind of hardware are you using?  I wonder if there's some kind of
mismatch between the compiler and the hardware for certain long
integer or floating point ops.

Did you build this Python yourself or are you running the tests on a
binary that came with the OS?  (Doesn't Mandrake come with Python?  I
know Red Hat does!)

--Guido van Rossum (home page: http://www.python.org/~guido/)