Skip to content

Commit 9425ff2

Browse files
authored
Update Lib/test/test_fractions.py
1 parent caefd01 commit 9425ff2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_fractions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1530,8 +1530,8 @@ def test_format_f_presentation_type(self):
15301530
(F(51, 1000), '.1f', '0.1'),
15311531
(F(149, 1000), '.1f', '0.1'),
15321532
(F(151, 1000), '.1f', '0.2'),
1533-
(F(1, 3), '.016f', '0.3333333333333333'), # issue gh-130662
1534-
(F(1, 3), '0030.016f', '0000000000000.3333333333333333'),
1533+
(F(22, 7), '.02f', '3.14'), # issue gh-130662
1534+
(F(22, 7), '005.02f', '03.14'),
15351535
]
15361536
for fraction, spec, expected in testcases:
15371537
with self.subTest(fraction=fraction, spec=spec):

0 commit comments

Comments
 (0)