mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
Fix decimal repr which should have used single quotes like other reprs.
This commit is contained in:
parent
ddb164a651
commit
abe3237187
3 changed files with 334 additions and 334 deletions
|
@ -1049,7 +1049,7 @@ class DecimalUsabilityTest(unittest.TestCase):
|
|||
|
||||
d = Decimal('15.32')
|
||||
self.assertEqual(str(d), '15.32') # str
|
||||
self.assertEqual(repr(d), 'Decimal("15.32")') # repr
|
||||
self.assertEqual(repr(d), "Decimal('15.32')") # repr
|
||||
|
||||
def test_tonum_methods(self):
|
||||
#Test float, int and long methods.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue