summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_float.py
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2010-04-02 14:01:22 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2010-04-02 14:01:22 (GMT)
commit87cc591e67b6292e9217962287d7e8e44781d96e (patch)
treeebb61e8e7211dc3f9ac3ded0022a46f6a192bb59 /Lib/test/test_float.py
parent593291e1632b5efb2b252f399e607ff267dd6357 (diff)
downloadcpython-87cc591e67b6292e9217962287d7e8e44781d96e.zip
cpython-87cc591e67b6292e9217962287d7e8e44781d96e.tar.gz
cpython-87cc591e67b6292e9217962287d7e8e44781d96e.tar.bz2
Add missing position specifiers in format string.
Diffstat (limited to 'Lib/test/test_float.py')
-rw-r--r--Lib/test/test_float.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/Lib/test/test_float.py b/Lib/test/test_float.py
index 7fadd80..af857d2 100644
--- a/Lib/test/test_float.py
+++ b/Lib/test/test_float.py
@@ -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):