MCPcopy Index your code
hub / github.com/python/cpython / c

Method c

Lib/test/test_hashlib.py:151–152  ·  view source on GitHub ↗
(*args, __algorithm_name=algorithm, **kwargs)

Source from the content-addressed store, hash-verified

149 for algorithm, constructors in self.constructors_to_test.items():
150 constructors.add(getattr(hashlib, algorithm))
151 def c(*args, __algorithm_name=algorithm, **kwargs):
152 return hashlib.new(__algorithm_name, *args, **kwargs)
153 c.__name__ = f'do_test_algorithm_via_hashlib_new_{algorithm}'
154 constructors.add(c)
155

Callers

nothing calls this directly

Calls 1

newMethod · 0.45

Tested by

no test coverage detected