[issue7251] Mark expected failures of test_math, test_cmath and test_round as such.

Mark Dickinson report at bugs.python.org
Thu Nov 5 14:36:33 CET 2009


Mark Dickinson <dickinsm at gmail.com> added the comment:

Skip, that looks like a float.hex failure.  I'm not sure what the 
underlying problem is here;  my best guess is that it's something to do 
with the copysign function.  Please could you tell me what the Solaris 
results are for the following interactive session? (Results shown are on 
OS X 10.5.)

Python 2.6.4+ (release26-maint:76116, Nov  5 2009, 13:30:59) 
[GCC 4.0.1 (Apple Inc. build 5490)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import math
>>> (-0.0).hex()
'-0x0.0p+0'
>>> float.fromhex((-0.0).hex())
-0.0
>>> math.copysign(1.0, -0.0)
-1.0

Also, is HAVE_COPYSIGN defined in pyconfig.h?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7251>
_______________________________________


More information about the Python-bugs-list mailing list