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: Do not emit warnings for disabled builtin hashes #20937

Merged

Conversation

stratakis
Copy link
Contributor

@stratakis stratakis commented Jun 17, 2020

test_hashlib emits some warnings when it cannot find some hashes
as it assumes they failed to compile. Since we can disable hashes
through configure, we emit the warnings only in the case that we
did not intentionaly disable them.

https://bugs.python.org/issue40637

Automerge-Triggered-By: @tiran

@stratakis
Copy link
Contributor Author

That is a test fix, thus I don't think a news entry is required here.

test_hashlib emits some warnings when it cannot find some hashes
as it assumes they failed to compile. Since we can disable hashes
through configure, we emit the warnings only in the case that we
did not intentionaly disable them.
@stratakis stratakis force-pushed the builtin_hashes_test_warnings branch from 58418b9 to 55aec53 Compare June 17, 2020 14:00
Copy link
Member

@tiran tiran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@miss-islington
Copy link
Contributor

@stratakis: Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit 236a0f5 into python:master Jun 17, 2020
@miss-islington
Copy link
Contributor

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

@miss-islington
Copy link
Contributor

Sorry @stratakis, I had trouble checking out the 3.9 backport branch.
Please backport using cherry_picker on command line.
cherry_picker 236a0f5cf022b59dbb6ea17a8e7a677c573d39b9 3.9

@miss-islington miss-islington self-assigned this Jun 17, 2020
stratakis added a commit to stratakis/cpython that referenced this pull request Jun 17, 2020
…thonGH-20937)

test_hashlib emits some warnings when it cannot find some hashes
as it assumes they failed to compile. Since we can disable hashes
through configure, we emit the warnings only in the case that we
did not intentionaly disable them.

Automerge-Triggered-By: @tiran
(cherry picked from commit 236a0f5)

Co-authored-by: stratakis <[email protected]>
@bedevere-bot
Copy link

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

@bedevere-bot bedevere-bot removed the needs backport to 3.9 only security fixes label Jun 17, 2020
@stratakis stratakis deleted the builtin_hashes_test_warnings branch June 17, 2020 19:54
arun-mani-j pushed a commit to arun-mani-j/cpython that referenced this pull request Jul 21, 2020
…-20937)

test_hashlib emits some warnings when it cannot find some hashes
as it assumes they failed to compile. Since we can disable hashes
through configure, we emit the warnings only in the case that we
did not intentionaly disable them.

Automerge-Triggered-By: @tiran
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.

5 participants