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

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

@stratakis stratakis commented Jun 19, 2020

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

@stratakis stratakis 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>
@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 Jun 20, 2020
@vstinner
Copy link

@vstinner vstinner commented Jul 10, 2020

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
9 checks passed
@miss-islington
Copy link

@miss-islington miss-islington commented Nov 17, 2020

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 Nov 17, 2020
miss-islington pushed a commit to miss-islington/cpython that referenced this issue 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
Copy link

@bedevere-bot bedevere-bot commented Nov 17, 2020

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

miss-islington added a commit that referenced this issue 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 issue 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
CLA signed skip news tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants