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.

Author sable
Recipients mark.dickinson, sable
Date 2010-09-23.13:15:43
SpamBayes Score 2.456406e-05
Marked as misclassified No
Message-id <1285247745.32.0.724516293254.issue9920@psf.upfronthosting.co.za>
In-reply-to
Content
No problem; I tried with a different compiler this time (gcc instead of xlc) and with -O0 just to be sure it is not a compiler issue. I had the same error.

I tried your test and you are right, the problem happens with log1p dropping the sign:

>>> import math, cmath
[52601 refs]
>>> math.log1p(-0.0)
0.0

I also tried test_math but it seems to work fine:

> ./python -E ./Lib/test/test_math.py 
testAcos (__main__.MathTests) ... ok
testAcosh (__main__.MathTests) ... ok
testAsin (__main__.MathTests) ... ok
testAsinh (__main__.MathTests) ... ok
testAtan (__main__.MathTests) ... ok
testAtan2 (__main__.MathTests) ... ok
testAtanh (__main__.MathTests) ... ok
testCeil (__main__.MathTests) ... ok
testConstants (__main__.MathTests) ... ok
testCopysign (__main__.MathTests) ... ok
testCos (__main__.MathTests) ... ok
testCosh (__main__.MathTests) ... ok
testDegrees (__main__.MathTests) ... ok
testExp (__main__.MathTests) ... ok
testFabs (__main__.MathTests) ... ok
testFactorial (__main__.MathTests) ... ok
testFloor (__main__.MathTests) ... ok
testFmod (__main__.MathTests) ... ok
testFrexp (__main__.MathTests) ... ok
testFsum (__main__.MathTests) ... ok
testHypot (__main__.MathTests) ... ok
testIsfinite (__main__.MathTests) ... ok
testIsinf (__main__.MathTests) ... ok
testIsnan (__main__.MathTests) ... ok
testLdexp (__main__.MathTests) ... ok
testLog (__main__.MathTests) ... ok
testLog10 (__main__.MathTests) ... ok
testLog1p (__main__.MathTests) ... ok
testModf (__main__.MathTests) ... ok
testPow (__main__.MathTests) ... ok
testRadians (__main__.MathTests) ... ok
testSin (__main__.MathTests) ... ok
testSinh (__main__.MathTests) ... ok
testSqrt (__main__.MathTests) ... ok
testTan (__main__.MathTests) ... ok
testTanh (__main__.MathTests) ... ok
test_exceptions (__main__.MathTests) ... ok
test_mtestfile (__main__.MathTests) ... ok
test_testfile (__main__.MathTests) ... ok
test_trunc (__main__.MathTests) ... ok
./Lib/test/ieee754.txt
Doctest: ieee754.txt ... ok

----------------------------------------------------------------------
Ran 41 tests in 10.467s

OK
History
Date User Action Args
2010-09-23 13:15:45sablesetrecipients: + sable, mark.dickinson
2010-09-23 13:15:45sablesetmessageid: <1285247745.32.0.724516293254.issue9920@psf.upfronthosting.co.za>
2010-09-23 13:15:44sablelinkissue9920 messages
2010-09-23 13:15:43sablecreate