mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Add missing position specifiers in format string.
This commit is contained in:
parent
593291e163
commit
87cc591e67
1 changed files with 7 additions and 5 deletions
|
@ -373,11 +373,13 @@ class HexFloatTestCase(unittest.TestCase):
|
||||||
elif x == y and (x != 0.0 or copysign(1.0, x) == copysign(1.0, y)):
|
elif x == y and (x != 0.0 or copysign(1.0, x) == copysign(1.0, y)):
|
||||||
return
|
return
|
||||||
# temporary debugging code for issue 8265
|
# temporary debugging code for issue 8265
|
||||||
print("\n MIN = {!r}\n"
|
print("\n MIN = {0!r}\n"
|
||||||
" TINY = {!r}\n"
|
" TINY = {1!r}\n"
|
||||||
" 3*TINY = {!r}\n"
|
" 3*TINY = {2!r}\n"
|
||||||
" MIN - 3*TINY = {!r}".format(
|
" MIN - 3*TINY = {3!r}\n"
|
||||||
self.MIN, self.TINY, 3*self.TINY, self.MIN - 3*self.TINY))
|
" 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))
|
self.fail('%r not identical to %r' % (x, y))
|
||||||
|
|
||||||
def test_ends(self):
|
def test_ends(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue