This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: test_long failure
Type: Stage:
Components: Interpreter Core Versions: Python 2.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: nnorwitz Nosy List: hoffman, loewis, mmokrejs, nnorwitz
Priority: normal Keywords:

Created on 2003-05-22 15:32 by mmokrejs, last changed 2022-04-10 16:08 by admin. This issue is now closed.

Messages (8)
msg16111 - (view) Author: Martin Mokrejs (mmokrejs) Date: 2003-05-22 15:32
$ python Lib/test/test_long.pyc
long / * % divmod
Karatsuba
long bit-operation identities
long str/hex/oct/atol
long miscellaneous operations
auto-convert int->long on overflow
long->float overflow
Traceback (most recent call last):
  File "/mnt/Python-2.3b1/Lib/test/test_long.py", line
442, in ?
    test_float_overflow()
  File "/mnt/Python-2.3b1/Lib/test/test_long.py", line
394, in test_float_overflow
    eval(test, namespace)
  File "<string>", line 0, in ?
ValueError: invalid literal for float():
12345123451234512345123451234512345123451234512345123451234512345123451234512345123451234512345123451234512345123451234512345123451234512345123451234512345123451234512345123451234512345123451234512345
$

This happens on Tru64Unix 5.1A, cc/cxx compiled binaries.
msg16112 - (view) Author: Martin Mokrejs (mmokrejs) Date: 2003-05-22 15:54
Logged In: YES 
user_id=696559

${ac_dA}SIZEOF_LONG${ac_dB}SIZEOF_LONG${ac_dC}8${ac_dD}
${ac_dA}HAVE_LONG_LONG${ac_dB}HAVE_LONG_LONG${ac_dC}1${ac_dD}
${ac_dA}SIZEOF_LONG_LONG${ac_dB}SIZEOF_LONG_LONG${ac_dC}8${ac_dD}
${ac_uA}SIZEOF_LONG${ac_uB}SIZEOF_LONG${ac_uC}8${ac_uD}
${ac_uA}HAVE_LONG_LONG${ac_uB}HAVE_LONG_LONG${ac_uC}1${ac_uD}
${ac_uA}SIZEOF_LONG_LONG${ac_uB}SIZEOF_LONG_LONG${ac_uC}8${ac_uD}

msg16113 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2003-05-22 21:08
Logged In: YES 
user_id=33168

Patch 719359 should fix this problem.  Can you test this patch?
msg16114 - (view) Author: Martin Mokrejs (mmokrejs) Date: 2003-05-23 08:44
Logged In: YES 
user_id=696559

Hmm, I see tthe patch in list of patches, but how to
download it? :(
msg16115 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2003-05-24 11:40
Logged In: YES 
user_id=21627

From 

http://sourceforge.net/tracker/download.php?group_id=5470&atid=305470&file_id=47386&aid=719359
msg16116 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2003-05-25 16:44
Logged In: YES 
user_id=33168

This problem has a tentative solution.  Please test the
patch in http://python.org/sf/719359
Scroll to the bottom and click Download on the
osf-opts.patch line.  Thanks.
msg16117 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2003-05-26 14:14
Logged In: YES 
user_id=33168

Checked in as:
 * configure 1.402
 * configure.in 1.413
msg16118 - (view) Author: Michael Hoffman (hoffman) Date: 2005-01-25 16:28
Logged In: YES 
user_id=987664

This is broken for gcc-3.4.3 on Tru64 5.1. Using the vendor
cc works fine.
History
Date User Action Args
2022-04-10 16:08:51adminsetgithub: 38537
2003-05-22 15:32:01mmokrejscreate