mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
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:
parent
ed44dfa4c7
commit
476279f18b
3 changed files with 49 additions and 19 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue