mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
gh-128051: Fix tests if sys.float_repr_style is 'legacy' (#135908)
Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
parent
e23518fa96
commit
f3aec60d7a
16 changed files with 50 additions and 44 deletions
|
@ -270,7 +270,7 @@ class TestMain(unittest.TestCase):
|
|||
(r'" \"foo\" "', f'{t.string}" \\"foo\\" "{t.reset}'),
|
||||
('"α"', f'{t.string}"\\u03b1"{t.reset}'),
|
||||
('123', f'{t.number}123{t.reset}'),
|
||||
('-1.2345e+23', f'{t.number}-1.2345e+23{t.reset}'),
|
||||
('-1.25e+23', f'{t.number}-1.25e+23{t.reset}'),
|
||||
(r'{"\\": ""}',
|
||||
f'''\
|
||||
{ob}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue