[Python-checkins] r79601 - python/branches/release26-maint/Lib/test/test_float.py

mark.dickinson python-checkins at python.org
Fri Apr 2 16:01:22 CEST 2010


Author: mark.dickinson
Date: Fri Apr  2 16:01:22 2010
New Revision: 79601

Log:
Add missing position specifiers in format string.

Modified:
   python/branches/release26-maint/Lib/test/test_float.py

Modified: python/branches/release26-maint/Lib/test/test_float.py
==============================================================================
--- python/branches/release26-maint/Lib/test/test_float.py	(original)
+++ python/branches/release26-maint/Lib/test/test_float.py	Fri Apr  2 16:01:22 2010
@@ -373,11 +373,13 @@
         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):


More information about the Python-checkins mailing list