]> granicus.if.org Git - python/commitdiff
Output extra debug info for fromhex tests, to aid diagnosis of issue 8265.
authorMark Dickinson <dickinsm@gmail.com>
Thu, 1 Apr 2010 20:49:45 +0000 (20:49 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Thu, 1 Apr 2010 20:49:45 +0000 (20:49 +0000)
This commit is temporary, and will be reverted within the next 3 days.

Lib/test/test_float.py

index 23c0c540bf91eeb4e50422982e1f8f7e2132d35a..7fadd80a5a8b32d213f5ed744746935f88e7ff76 100644 (file)
@@ -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):