Skip to content

gh-136547: refactor hashlib_helper for blocking and requesting digests #136762

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Jul 20, 2025
Prev Previous commit
fix raise
  • Loading branch information
picnixz committed Jul 20, 2025
commit f4bf516aba1c3e684e3d57c1c7de1e2fdd2beb4c
2 changes: 1 addition & 1 deletion Lib/test/support/hashlib_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def _hashlib_new(digestname, openssl, /, **kwargs):
module = _hashlib if openssl and _hashlib is not None else hashlib
try:
module.new(digestname, **kwargs)
except ValueError:
except ValueError as exc:
interface = f"{module.__name__}.new"
raise SkipNoHash(digestname, interface=interface) from exc
return functools.partial(module.new, digestname)
Expand Down
Loading