Skip to content

bpo-40637: Do not emit warnings for disabled builtin hashes#20937

Merged
miss-islington merged 1 commit into
python:masterfrom
stratakis:builtin_hashes_test_warnings
Jun 17, 2020
Merged

bpo-40637: Do not emit warnings for disabled builtin hashes#20937
miss-islington merged 1 commit into
python:masterfrom
stratakis:builtin_hashes_test_warnings

Conversation

@stratakis

@stratakis stratakis commented Jun 17, 2020

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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

@tiran tiran left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
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
Copy Markdown
Contributor

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

@miss-islington

Copy link
Copy Markdown
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 <cstratak@redhat.com>
@bedevere-bot

Copy link
Copy Markdown

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

@stratakis
stratakis deleted the builtin_hashes_test_warnings branch June 17, 2020 19:54
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