]> granicus.if.org Git - python/commitdiff
Add a pydebug mode only debug print to help debug the errors in
authorGregory P. Smith <greg@mad-scientist.com>
Tue, 19 Jan 2010 08:01:00 +0000 (08:01 +0000)
committerGregory P. Smith <greg@mad-scientist.com>
Tue, 19 Jan 2010 08:01:00 +0000 (08:01 +0000)
 http://www.python.org/dev/buildbot/all/builders/x86%20gentoo%20trunk/builds/5700/

Will be removed shortly.

Lib/test/test_hashlib.py

index b5fee5151a5197159776df4bbd0a6ac14222b5f8..6defa197cfa9749e0e41a6cea444bca6abd3e924 100644 (file)
@@ -140,6 +140,10 @@ class HashLibTestCase(unittest.TestCase):
         # 2 is for hashlib.name(...) and hashlib.new(name, ...)
         self.assertGreaterEqual(len(constructors), 2)
         for hash_object_constructor in constructors:
+            if COMPILED_WITH_PYDEBUG:
+                # XXX(gps): This is temporary to debug a buildbot failure.
+                #  http://www.python.org/dev/buildbot/all/builders/x86%20gentoo%20trunk/builds/5700/
+                print "test_hashlib check calling", hash_object_constructor
             computed = hash_object_constructor(data).hexdigest()
             self.assertEqual(
                     computed, digest,