]> granicus.if.org Git - python/commitdiff
Add missing position specifiers in format string.
authorMark Dickinson <dickinsm@gmail.com>
Fri, 2 Apr 2010 14:01:22 +0000 (14:01 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Fri, 2 Apr 2010 14:01:22 +0000 (14:01 +0000)
Lib/test/test_float.py

index 7fadd80a5a8b32d213f5ed744746935f88e7ff76..af857d20da8d2716168d0fb09ef312b4d2379c43 100644 (file)
@@ -373,11 +373,13 @@ class HexFloatTestCase(unittest.TestCase):
         elif x == y and (x != 0.0 or copysign(1.0, x) == copysign(1.0, y)):
             return
         # temporary debugging code for issue 8265
-        print("\n  MIN = {!r}\n"
-              "  TINY = {!r}\n"
-              "  3*TINY = {!r}\n"
-              "  MIN - 3*TINY = {!r}".format(
-                self.MIN, self.TINY, 3*self.TINY, self.MIN - 3*self.TINY))
+        print("\n  MIN = {0!r}\n"
+              "  TINY = {1!r}\n"
+              "  3*TINY = {2!r}\n"
+              "  MIN - 3*TINY = {3!r}\n"
+              "  ldexp(1.0, -1074) = {4!r}\n".format(
+                self.MIN, self.TINY, 3*self.TINY,
+                self.MIN - 3*self.TINY, ldexp(1.0, -1074)))
         self.fail('%r not identical to %r' % (x, y))
 
     def test_ends(self):