(key, msg=None, digestmod=None)
| 942 | |
| 943 | @functools.wraps(wrapped := _hmac.new) |
| 944 | def _hmac_new(key, msg=None, digestmod=None): |
| 945 | if digestmod == blocked_name: |
| 946 | raise _hmac.UnknownHashError(blocked_name) |
| 947 | return wrapped(key, msg, digestmod) |
| 948 | |
| 949 | _ensure_wrapper_signature(_hmac_new, wrapped) |
| 950 | return unittest.mock.patch('_hmac.new', _hmac_new) |
nothing calls this directly
no test coverage detected
searching dependent graphs…