[Python-checkins] r79560 - python/branches/release26-maint/Lib/test/test_float.py

mark.dickinson python-checkins at python.org
Thu Apr 1 22:49:46 CEST 2010


Author: mark.dickinson
Date: Thu Apr  1 22:49:45 2010
New Revision: 79560

Log:
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.


Modified:
   python/branches/release26-maint/Lib/test/test_float.py

Modified: python/branches/release26-maint/Lib/test/test_float.py
==============================================================================
--- python/branches/release26-maint/Lib/test/test_float.py	(original)
+++ python/branches/release26-maint/Lib/test/test_float.py	Thu Apr  1 22:49:45 2010
@@ -372,6 +372,12 @@
                 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):


More information about the Python-checkins mailing list