Skip to content

Commit ec8f37d

Browse files
committed
Update test_pprint.py from 3.13.7
1 parent 8850605 commit ec8f37d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_pprint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ def __new__(cls, celsius_degrees):
374374
return super().__new__(Temperature, celsius_degrees)
375375
def __repr__(self):
376376
kelvin_degrees = self + 273.15
377-
return f"{kelvin_degrees}°K"
377+
return f"{kelvin_degrees:.2f}°K"
378378
self.assertEqual(pprint.pformat(Temperature(1000)), '1273.15°K')
379379

380380
def test_sorted_dict(self):

0 commit comments

Comments
 (0)