Update test_pprint.py from 3.13.7

This commit is contained in:
ShaharNaveh committed 2025-08-31 11:59:46 +03:00
1 parent 88506059f9
commit ec8f37dcd6
1 file changed
+1 -1
+1 -1
View File
@@ -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):