diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2010-01-16 10:44:00 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2010-01-16 10:44:00 (GMT) |
commit | 476279f18b1bbcc5939f6bb7a10dd937c933cfb3 (patch) | |
tree | 9a4f840b7f56e536ba736d5a46079f5a65a7285b /Lib/test/test_strtod.py | |
parent | ed44dfa4c7dd03488da6e23c9901af7185af8302 (diff) | |
download | cpython-476279f18b1bbcc5939f6bb7a10dd937c933cfb3.zip cpython-476279f18b1bbcc5939f6bb7a10dd937c933cfb3.tar.gz cpython-476279f18b1bbcc5939f6bb7a10dd937c933cfb3.tar.bz2 |
Issue #7632: Fix a serious wrong output bug for string -> float conversion.
Also remove some now unused variables, and add comments clarifying the
possible outputs of the parsing section of _Py_dg_strtod. Thanks
Eric Smith for reviewing.
Diffstat (limited to 'Lib/test/test_strtod.py')
-rw-r--r-- | Lib/test/test_strtod.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_strtod.py b/Lib/test/test_strtod.py index 7800a73..0c6f59d 100644 --- a/Lib/test/test_strtod.py +++ b/Lib/test/test_strtod.py @@ -258,6 +258,8 @@ class StrtodTests(unittest.TestCase): # issue 7632 bug 5: the following 2 strings convert differently '1000000000000000000000000000000000000000e-16', #'10000000000000000000000000000000000000000e-17', + # issue 7632 bug 8: the following produced 10.0 + '10.900000000000000012345678912345678912345', ] for s in test_strings: self.check_strtod(s) |