[Python-bugs-list] [ python-Bugs-678265 ] test_coercion fails on AIX

SourceForge.net noreply@sourceforge.net
Fri, 31 Jan 2003 13:08:30 -0800


Bugs item #678265, was opened at 2003-01-31 13:10
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=678265&group_id=5470

Category: Python Interpreter Core
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Neal Norwitz (nnorwitz)
Assigned to: Nobody/Anonymous (nobody)
Summary: test_coercion fails on AIX

Initial Comment:
Tim, I assigned this to you to see if you had any 
insight/ideas about this problem.

test_coercion fails on AIX.  All the failures are due to the 
test expecting n+0j, but the output is n-0j.

Here's an example:

- <MethodNumber 1> / (2+0j) = (0.5+0j)
?                                 ^
+ <MethodNumber 1> / (2+0j) = (0.5-0j)
?                                 ^

I have another compiler, so I'll probably try that.  
Especially since it's gcc. :-)

----------------------------------------------------------------------

>Comment By: Tim Peters (tim_one)
Date: 2003-01-31 16:08

Message:
Logged In: YES 
user_id=31435

You really need a platform wizard for something like this.  If 
there are any compiler options with descriptions 
like "generate IEEE-754 compatible code" (or "stricter 754 
xyz"), or "disable generation of fused multiply-add", they 
would be relevant.

OTOH, Python promises nothing about how the sign bit of a 
floating zero behaves, so it would be OK by me if the test 
were changed not to produce complex results with zero 
imaginary members.

----------------------------------------------------------------------

Comment By: Neal Norwitz (nnorwitz)
Date: 2003-01-31 14:26

Message:
Logged In: YES 
user_id=33168

The test passes with gcc 3.2.  The C compiler is in vac.C 
version 4.4.0.3 (lslpp -l vac.C).

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=678265&group_id=5470