diff --git a/Lib/test/test_pprint.py b/Lib/test/test_pprint.py index 4e6fed1ab..ace75561f 100644 --- a/Lib/test/test_pprint.py +++ b/Lib/test/test_pprint.py @@ -374,7 +374,7 @@ class QueryTestCase(unittest.TestCase): return super().__new__(Temperature, celsius_degrees) def __repr__(self): kelvin_degrees = self + 273.15 - return f"{kelvin_degrees}°K" + return f"{kelvin_degrees:.2f}°K" self.assertEqual(pprint.pformat(Temperature(1000)), '1273.15°K') def test_sorted_dict(self):