If Python3 use an OpenSSL like SSL library that only expose SHA3 algo and no SHAKE algo, the test_hashlib test wrongly detect the algo presence and fails to execute on the SHA3 test.
This has been identified in a wrong logic for the try-except block for HASH, HASHXOF detection.
changed the title [-]test_haslib fails with SSLlibrary having only SHA3 algo but no SHAKE[/-][+]test_hashlib fails with SSLlibrary having only SHA3 algo but no SHAKE[/+]on Nov 24, 2025
Activity
gpshead commented on Nov 24, 2025
thanks, PR set to automerge.
Ansuel commented on Nov 24, 2025
@gpshead thanks for the fast review!
gh-141907: Better handle support for SHA3 for test_hashlib (GH-141908)
pythongh-141907: Better handle support for SHA3 for test_hashlib (pyt…
pythongh-141907: Better handle support for SHA3 for test_hashlib (pyt…
[3.14] gh-141907: Better handle support for SHA3 for test_hashlib (GH…
[3.13] gh-141907: Better handle support for SHA3 for test_hashlib (GH…
picnixz commented on Nov 25, 2025
Thanks for the report & fix!
pythongh-141907: Better handle support for SHA3 for test_hashlib (pyt…
pythongh-141907: Better handle support for SHA3 for test_hashlib (pyt…