MCPcopy Index your code
hub / github.com/RustPython/RustPython / c

Method c

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

Source from the content-addressed store, hash-verified

139 for algorithm, constructors in self.constructors_to_test.items():
140 constructors.add(getattr(hashlib, algorithm))
141 def c(*args, __algorithm_name=algorithm, **kwargs):
142 return hashlib.new(__algorithm_name, *args, **kwargs)
143 c.__name__ = f'do_test_algorithm_via_hashlib_new_{algorithm}'
144 constructors.add(c)
145

Callers

nothing calls this directly

Calls 1

newMethod · 0.45

Tested by

no test coverage detected