@@ -54,18 +54,15 @@ def fmt_str(draw, types='fFeE', for_complex=False):
54
54
skip_thousand_separators = True
55
55
56
56
# Width
57
- res += draw (st .sampled_from (['' ]* 7 + list (map (str , range (1 , 40 )))
58
- + ([] if for_complex else ['0' + str (_ )
59
- for _ in range (40 )])))
57
+ res += draw (st .sampled_from (['' ]* 7 + list (map (str , range (1 , 40 )))))
60
58
61
59
# grouping character (thousand_separators)
62
60
gchar = draw (st .sampled_from (['' ] + list (',_' )))
63
61
if gchar and not skip_thousand_separators :
64
62
res += gchar
65
63
66
64
# Precision
67
- prec = draw (st .sampled_from (['' ]* 7 + list (map (str , range (40 )))
68
- + ['0' + str (_ ) for _ in range (40 )]))
65
+ prec = draw (st .sampled_from (['' ]* 7 + list (map (str , range (40 )))))
69
66
if prec :
70
67
res += '.' + prec
71
68
# if sys.version_info >= (3, 14):
@@ -477,8 +474,6 @@ def test_mpf_fmt_cpython():
477
474
allow_infinity = True ,
478
475
allow_subnormal = True ))
479
476
@example (fmt = '.0g' , x = 9.995074823339339e-05 ) # issue 880
480
- @example (fmt = '.016f' , x = 0.1 ) # issue 915
481
- @example (fmt = '0030f' , x = 0.3 )
482
477
@example (fmt = '0=13,f' , x = 1.1 ) # issue 917
483
478
@example (fmt = '013,f' , x = 1.1 )
484
479
@example (fmt = '013,.0%' , x = 1.1 )
0 commit comments