From e2bf70c2bd4553ede019f4bdc7556e2b0b4b78b6 Mon Sep 17 00:00:00 2001 From: "Gregory P. Smith" Date: Mon, 2 Dec 2024 04:21:01 +0000 Subject: [PATCH] remove debug print --- Lib/test/test_hashlib.py | 1 - .../Library/2024-12-02-04-08-22.gh-issue-127298.8cpkfk.rst | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 Misc/NEWS.d/next/Library/2024-12-02-04-08-22.gh-issue-127298.8cpkfk.rst diff --git a/Lib/test/test_hashlib.py b/Lib/test/test_hashlib.py index 0e2d44442f34f9..1c1a0396c894de 100644 --- a/Lib/test/test_hashlib.py +++ b/Lib/test/test_hashlib.py @@ -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)=}") diff --git a/Misc/NEWS.d/next/Library/2024-12-02-04-08-22.gh-issue-127298.8cpkfk.rst b/Misc/NEWS.d/next/Library/2024-12-02-04-08-22.gh-issue-127298.8cpkfk.rst new file mode 100644 index 00000000000000..a3ecef2c119dbf --- /dev/null +++ b/Misc/NEWS.d/next/Library/2024-12-02-04-08-22.gh-issue-127298.8cpkfk.rst @@ -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.