We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
test_pprint.py
1 parent 8850605 commit ec8f37dCopy full SHA for ec8f37d
Lib/test/test_pprint.py
@@ -374,7 +374,7 @@ def __new__(cls, celsius_degrees):
374
return super().__new__(Temperature, celsius_degrees)
375
def __repr__(self):
376
kelvin_degrees = self + 273.15
377
- return f"{kelvin_degrees}°K"
+ return f"{kelvin_degrees:.2f}°K"
378
self.assertEqual(pprint.pformat(Temperature(1000)), '1273.15°K')
379
380
def test_sorted_dict(self):
0 commit comments