Skip to content

Commit 57f4824

Browse files
committed
+1
1 parent 33f984f commit 57f4824

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

Lib/test/test_json/test_tool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ def test_colors(self):
270270
(r'" \"foo\" "', f'{t.string}" \\"foo\\" "{t.reset}'),
271271
('"α"', f'{t.string}"\\u03b1"{t.reset}'),
272272
('123', f'{t.number}123{t.reset}'),
273-
('-1.2345e+23', f'{t.number}-1.2345e+23{t.reset}'),
273+
('-1.25e+23', f'{t.number}-1.25e+23{t.reset}'),
274274
(r'{"\\": ""}',
275275
f'''\
276276
{ob}

Lib/test/test_types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,8 +517,8 @@ def test(f, format_spec, result):
517517
# and a number after the decimal. This is tricky, because
518518
# a totally empty format specifier means something else.
519519
# So, just use a sign flag
520-
test(1e200, '+g', '+1e+200')
521-
test(1e200, '+', '+1e+200')
520+
test(1.25e200, '+g', '+1.25e+200')
521+
test(1.25e200, '+', '+1.25e+200')
522522

523523
test(1.1e200, '+g', '+1.1e+200')
524524
test(1.1e200, '+', '+1.1e+200')

Objects/clinic/floatobject.c.h

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Objects/floatobject.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1238,13 +1238,13 @@ Create a floating-point number from a hexadecimal string.
12381238
12391239
>>> float.fromhex('0x1.ffffp10')
12401240
2047.984375
1241-
>>> float.fromhex('-0x1p-1074')
1242-
-5e-324
1241+
>>> float.fromhex('0x1.21p-1034')
1242+
6.132567835889637e-312
12431243
[clinic start generated code]*/
12441244

12451245
static PyObject *
12461246
float_fromhex_impl(PyTypeObject *type, PyObject *string)
1247-
/*[clinic end generated code: output=c54b4923552e5af5 input=0407bebd354bca89]*/
1247+
/*[clinic end generated code: output=c54b4923552e5af5 input=d75b777b5766774a]*/
12481248
{
12491249
PyObject *result;
12501250
double x;

0 commit comments

Comments
 (0)