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.
This commit is contained in:
Mark Dickinson 2010-01-16 10:44:00 +00:00
parent ed44dfa4c7
commit 476279f18b
3 changed files with 49 additions and 19 deletions

View file

@ -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)