]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-44048: Fix two hashlib test cases under FIPS mode (GH-26470) (GH-26531)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 4 Jun 2021 18:38:02 +0000 (11:38 -0700)
committerGitHub <noreply@github.com>
Fri, 4 Jun 2021 18:38:02 +0000 (19:38 +0100)
commit3f4d801bf907a5fcab50f3b64475d1410b90a80f
tree55797c66ab8198d257426503d59ccde82b610b1a
parente53f72a1b42e17a331ed14bec674b1ee01d0720c
bpo-44048: Fix two hashlib test cases under FIPS mode (GH-26470) (GH-26531)

test_disallow_instantiation and test_readonly_types try to test all the available
digests, however under FIPS mode, while the algorithms are available, trying to use
them will fail with a ValueError.
(cherry picked from commit a46c220edc5cf716d0b71eb80ac29ecdb4ebb430)

Co-authored-by: stratakis <cstratak@redhat.com>
Co-authored-by: stratakis <cstratak@redhat.com>
Lib/test/test_hashlib.py