Output extra debug info for fromhex tests, to aid diagnosis of issue 8265.
This commit is temporary, and will be reverted within the next 3 days.
This commit is contained in:
parent
efb4b07fff
commit
11d36bc135
|
@ -372,6 +372,12 @@ class HexFloatTestCase(unittest.TestCase):
|
||||||
return
|
return
|
||||||
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
|
||||||
|
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))
|
||||||
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…
Reference in New Issue