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

bpo-40637: Don't test builtin PBKDF2 without builtin hashes (GH-20980) #20980

Merged
merged 1 commit into from
Nov 17, 2020

Conversation

tiran
Copy link
Member

@tiran tiran commented Jun 19, 2020

Skip testing of pure Python PBKDF2 when one or more builtin hash module
is not available. Otherwise the import of hashlib prints noise on
stderr.

Signed-off-by: Christian Heimes christian@python.org

https://bugs.python.org/issue40637

@stratakis
Copy link
Contributor

Without yet looking at the code, I can verify that this PR fixes the stderr noise on the RHEL8 FIPS enabled builbot and also clears the warning: Warning -- logging._handlerList was modified by test_hashlib

Also minor typo: s/hashses/hashes

@stratakis
Copy link
Contributor

Skip testing of pure Python PBKDF2 when one or more builtin hash module
is not available. Otherwise the import of hashlib prints noise on
stderr.

Signed-off-by: Christian Heimes <christian@python.org>
@tiran tiran changed the title bpo-40637: Don't test builtin PBKDF2 without builtin hashses bpo-40637: Don't test builtin PBKDF2 without builtin hashes Jun 20, 2020
@tiran tiran force-pushed the bpo-40637-builtin-hash-stderr branch from a5e11d5 to 0866ed3 Compare June 20, 2020 07:12
@vstinner
Copy link
Member

I have been asked to review this change. Honestly, I don't feel able to review this PR. I tried but failed to understand the complexity of hashlib build options and FIPS mode.

If you are confident and @stratakis confirms that this change fix his issue, just merge your PR.

@tiran tiran changed the title bpo-40637: Don't test builtin PBKDF2 without builtin hashes bpo-40637: Don't test builtin PBKDF2 without builtin hashes (GH-20980) Nov 17, 2020
@tiran tiran merged commit 975022b into python:master Nov 17, 2020
@miss-islington
Copy link
Contributor

Thanks @tiran for the PR 🌮🎉.. I'm working now to backport this PR to: 3.9.
🐍🍒⛏🤖

@tiran tiran deleted the bpo-40637-builtin-hash-stderr branch November 17, 2020 14:40
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Nov 17, 2020
…-20980)

Skip testing of pure Python PBKDF2 when one or more builtin hash module
is not available. Otherwise the import of hashlib prints noise on
stderr.

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 975022b)

Co-authored-by: Christian Heimes <christian@python.org>
@bedevere-bot bedevere-bot removed the needs backport to 3.9 only security fixes label Nov 17, 2020
@bedevere-bot
Copy link

GH-23343 is a backport of this pull request to the 3.9 branch.

miss-islington added a commit that referenced this pull request Nov 17, 2020
Skip testing of pure Python PBKDF2 when one or more builtin hash module
is not available. Otherwise the import of hashlib prints noise on
stderr.

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 975022b)

Co-authored-by: Christian Heimes <christian@python.org>
adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 13, 2021
…-20980)

Skip testing of pure Python PBKDF2 when one or more builtin hash module
is not available. Otherwise the import of hashlib prints noise on
stderr.

Signed-off-by: Christian Heimes <christian@python.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants