Skip to content

Commit a80ad5c

Browse files
committed
cosmetics
1 parent 4b26903 commit a80ad5c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/test/support/hashlib_helper.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -985,9 +985,11 @@ def _block_builtin_hmac_constructor(name):
985985
if (wrapped := info.import_member()) is None:
986986
# function shouldn't exist for this implementation
987987
return contextlib.nullcontext()
988+
988989
@functools.wraps(wrapped)
989990
def wrapper(key, obj):
990991
raise ValueError(f"blocked hash name: {name}")
992+
991993
_ensure_wrapper_signature(wrapper, wrapped)
992994
return unittest.mock.patch(info.fullname, wrapper)
993995

0 commit comments

Comments
 (0)