]> granicus.if.org Git - python/commit
test_float_overflow(): make shuge (added last week) a little less
authorGuido van Rossum <guido@python.org>
Mon, 3 Feb 2003 15:25:01 +0000 (15:25 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 3 Feb 2003 15:25:01 +0000 (15:25 +0000)
commit7aa56c9a7f3b23fa5634ae62ae881a0c94f21ab6
treeb68c9214f75d170783ab64e50141bb852ee96f5e
parent8ca202e39595c2080e3648799f5821122b4c4e4c
test_float_overflow(): make shuge (added last week) a little less
huge.  On older Linux systems, the C library's strtod() apparently
gives up before seeing the end of the string when it sees so many
digits that it thinks the result must be Infinity.  (It is wrong, BTW
-- there could be an "e-10000" hiding behind 10,000 digits.)  The
shorter shuge still tests what it's testing, without relying on
strtod() doing a super job.
Lib/test/test_long.py