summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_float.py
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2010-04-01 20:49:45 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2010-04-01 20:49:45 (GMT)
commit11d36bc135277adb62547a6c1d3c4ea8d21532dd (patch)
tree073013c15d960a1ea73fe13d7890f9dfc35de8e9 /Lib/test/test_float.py
parentefb4b07fffd79b9d98a56cd83835193a31d54f2b (diff)
downloadcpython-11d36bc135277adb62547a6c1d3c4ea8d21532dd.zip
cpython-11d36bc135277adb62547a6c1d3c4ea8d21532dd.tar.gz
cpython-11d36bc135277adb62547a6c1d3c4ea8d21532dd.tar.bz2
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.
Diffstat (limited to 'Lib/test/test_float.py')
-rw-r--r--Lib/test/test_float.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_float.py b/Lib/test/test_float.py
index 23c0c54..7fadd80 100644
--- a/Lib/test/test_float.py
+++ b/Lib/test/test_float.py
@@ -372,6 +372,12 @@ class HexFloatTestCase(unittest.TestCase):
return
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))
self.fail('%r not identical to %r' % (x, y))
def test_ends(self):