[Python-checkins] r56539 - python/trunk/Lib/test/test_pow.py

nick.coghlan python-checkins at python.org
Wed Jul 25 15:18:59 CEST 2007


Author: nick.coghlan
Date: Wed Jul 25 15:18:58 2007
New Revision: 56539

Modified:
   python/trunk/Lib/test/test_pow.py
Log:
Add a temporary diagnostic message before a strange failure on the alpha Debian buildbot

Modified: python/trunk/Lib/test/test_pow.py
==============================================================================
--- python/trunk/Lib/test/test_pow.py	(original)
+++ python/trunk/Lib/test/test_pow.py	Wed Jul 25 15:18:58 2007
@@ -106,6 +106,12 @@
         # platform pow() was buggy, and Python didn't worm around it.
         eq = self.assertEquals
         a = -1.0
+        # XXX Temporary diagnostic for failure on alpha Debian buildbot
+        from sys import __stdout__
+        from math import floor
+        print >> __stdout__, "*** Number: %r" % 1.23e167
+        print >> __stdout__, "*** Floor: %r" % floor(1.23e167)
+        # XXX End diagnostic message
         eq(pow(a, 1.23e167), 1.0)
         eq(pow(a, -1.23e167), 1.0)
         for b in range(-10, 11):


More information about the Python-checkins mailing list