mirror of
https://github.com/python/cpython.git
synced 2025-07-29 22:24:49 +00:00
Put an extra space into the repr of a Fraction:
Fraction(1, 2) instead of Fraction(1,2).
This commit is contained in:
parent
03d3abf375
commit
cd873fc142
3 changed files with 4 additions and 4 deletions
|
@ -363,7 +363,7 @@ class FractionTest(unittest.TestCase):
|
|||
self.assertFalse(R(5, 2) == 2)
|
||||
|
||||
def testStringification(self):
|
||||
self.assertEquals("Fraction(7,3)", repr(R(7, 3)))
|
||||
self.assertEquals("Fraction(7, 3)", repr(R(7, 3)))
|
||||
self.assertEquals("7/3", str(R(7, 3)))
|
||||
self.assertEquals("7", str(R(7, 1)))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue