Home | History | Annotate | Download | only in test

Lines Matching refs:hashlib

2 # hashlib functions; it does not test for correctness.
5 import hashlib
58 elif hasattr(hashlib, hName) and callable(getattr(hashlib, hName)):
59 creatorFunc = getattr(hashlib, hName)
60 print "testing speed of hashlib."+hName, getattr(hashlib, hName)
62 exec "creatorFunc = lambda x=hashlib.new : x(%r)" % hName
63 print "testing speed of hashlib.new(%r)" % hName
73 print " 'hName' tests the hashlib.hName() implementation if it exists"
74 print " otherwise it uses hashlib.new(hName)."