Home | History | Annotate | Download | only in test

Lines Matching refs:_hashlib

50 elif hName == '_hashlib' and len(sys.argv) > 3:
51 import _hashlib
52 exec 'creatorFunc = _hashlib.%s' % sys.argv[2]
53 print "testing speed of _hashlib.%s" % sys.argv[2], getattr(_hashlib, sys.argv[2])
54 elif hName == '_hashlib' and len(sys.argv) == 3:
55 import _hashlib
56 exec 'creatorFunc = lambda x=_hashlib.new : x(%r)' % sys.argv[2]
57 print "testing speed of _hashlib.new(%r)" % sys.argv[2]
71 print " '_hashlib' 'openssl_hName' 'fast' tests the builtin _hashlib"
72 print " '_hashlib' 'hName' tests builtin _hashlib.new(shaFOO)"