diff options
Diffstat (limited to 'Lib/test/test_float.py')
-rw-r--r-- | Lib/test/test_float.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_float.py b/Lib/test/test_float.py index a1b130b48b..ac5fc336a6 100644 --- a/Lib/test/test_float.py +++ b/Lib/test/test_float.py @@ -617,7 +617,9 @@ class ReprTestCase(unittest.TestCase): negs = '-'+s self.assertEqual(s, repr(float(s))) self.assertEqual(negs, repr(float(negs))) - + # Since Python 3.2, repr and str are identical + self.assertEqual(repr(float(s)), str(float(s))) + self.assertEqual(repr(float(negs)), str(float(negs))) @requires_IEEE_754 class RoundTestCase(unittest.TestCase): |