Skip to content
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

gh-127298: Refactor test_hashlib for better usedforsecurity & openssl fips mode env support. #127492

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove debug print
  • Loading branch information
gpshead committed Dec 2, 2024
commit e2bf70c2bd4553ede019f4bdc7556e2b0b4b78b6
1 change: 0 additions & 1 deletion Lib/test/test_hashlib.py
Original file line number Diff line number Diff line change
@@ -229,7 +229,6 @@ def test_algorithms_guaranteed(self):

@unittest.skipIf(get_fips_mode(), reason="guaranteed algorithms may not be available in FIPS mode")
def test_algorithms_available(self):
print(f"{get_fips_mode()=}")
self.assertTrue(set(hashlib.algorithms_guaranteed).
issubset(hashlib.algorithms_available),
msg=f"\n{sorted(hashlib.algorithms_guaranteed)=}\n{sorted(hashlib.algorithms_available)=}")
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
:mod:`hashlib` now avoids emitting a message to stderr when used in custom
build or system environment excluding any of our otherwise guaranteed
available hash functions.
Loading