summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_hashlib.py
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2010-01-19 08:01:00 (GMT)
committerGregory P. Smith <greg@mad-scientist.com>2010-01-19 08:01:00 (GMT)
commit8f6f42621a28f02424a8effd45a03a6496fcabad (patch)
treeb7b2a50727d1df26341f99a3ec5fcc5fe68e8c99 /Lib/test/test_hashlib.py
parent9179dab3f4d5552e756c221830f7174cb9218b64 (diff)
downloadcpython-8f6f42621a28f02424a8effd45a03a6496fcabad.zip
cpython-8f6f42621a28f02424a8effd45a03a6496fcabad.tar.gz
cpython-8f6f42621a28f02424a8effd45a03a6496fcabad.tar.bz2
Add a pydebug mode only debug print to help debug the errors in
http://www.python.org/dev/buildbot/all/builders/x86%20gentoo%20trunk/builds/5700/ Will be removed shortly.
Diffstat (limited to 'Lib/test/test_hashlib.py')
-rw-r--r--Lib/test/test_hashlib.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_hashlib.py b/Lib/test/test_hashlib.py
index b5fee51..6defa19 100644
--- a/Lib/test/test_hashlib.py
+++ b/Lib/test/test_hashlib.py
@@ -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,