Home | History | Annotate | Download | only in test

Lines Matching refs:_hashlib

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