diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-12-29 20:51:24 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-12-29 20:51:24 (GMT) |
commit | 8e3e1d601612783434d61cf8927c55bf866b2f1b (patch) | |
tree | bad7d3409aa08b3667ac9d1e463c3755d3de37a8 /Lib | |
parent | b4a4f5167bee1affcd88ee0b2be6d62233624b7e (diff) | |
download | cpython-8e3e1d601612783434d61cf8927c55bf866b2f1b.zip cpython-8e3e1d601612783434d61cf8927c55bf866b2f1b.tar.gz cpython-8e3e1d601612783434d61cf8927c55bf866b2f1b.tar.bz2 |
Issue #7575: An overflow test for math.expm1 was failing on OS X 10.4/Intel,
due to a defect in the platform's implementation of expm1. Since the issue
is of low severity, and appears to be fixed in OS X 10.5 and 10.6, it doesn't
seem worth working around, so I'm just weakening the relevant test so that
it passes on 10.4.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/math_testcases.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Lib/test/math_testcases.txt b/Lib/test/math_testcases.txt index bd8813e..21730df 100644 --- a/Lib/test/math_testcases.txt +++ b/Lib/test/math_testcases.txt @@ -396,8 +396,14 @@ expm10215 expm1 -1.79e308 -> -1.0 -- extreme positive values expm10300 expm1 300 -> 1.9424263952412558e+130 expm10301 expm1 700 -> 1.0142320547350045e+304 -expm10302 expm1 709.78271289328393 -> 1.7976931346824240e+308 +-- the next test (expm10302) is disabled because it causes failure on +-- OS X 10.4/Intel: apparently all values over 709.78 produce an +-- overflow on that platform. See issue #7575. +-- expm10302 expm1 709.78271289328393 -> 1.7976931346824240e+308 expm10303 expm1 709.78271289348402 -> inf overflow expm10304 expm1 1000 -> inf overflow expm10305 expm1 1e50 -> inf overflow expm10306 expm1 1.79e308 -> inf overflow + +-- weaker version of expm10302 +expm10307 expm1 709.5 -> 1.3549863193146328e+308 |