mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Update test_pprint.py from 3.13.7
This commit is contained in:
1 parent
88506059f9
commit
ec8f37dcd6
1 file changed
+1
-1
Vendored
+1
-1
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user