FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-130149: refactor tests for HMAC by picnixz · Pull Request #130150 · python/cpython · GitHub

/ cpython Public

gh-130149: refactor tests for HMAC - #130150

Merged
picnixz merged 27 commits into
python:mainfrom
picnixz:test/hmac/refactor-99108
Mar 3, 2025
Merged

gh-130149: refactor tests for HMAC#130150
picnixz merged 27 commits into
python:mainfrom
picnixz:test/hmac/refactor-99108

Conversation

picnixz commented Feb 15, 2025
edited
Loading

Copy link
Copy Markdown
Member
  • test the repr() of HMAC OpenSSL objects properly.

picnixz commented Feb 15, 2025

Copy link
Copy Markdown
Member Author

This PR won't work against refleaks due to #130151.

picnixz marked this pull request as ready for review February 15, 2025 12:29
picnixz marked this pull request as draft February 24, 2025 17:51
picnixz added the 🔨 test-with-refleak-buildbots Test PR w/ refleak buildbots; report in status section label Mar 1, 2025

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @picnixz for commit 644f577 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F130150%2Fmerge

If you want to schedule another build, you need to add the 🔨 test-with-refleak-buildbots label again.

bedevere-bot removed the 🔨 test-with-refleak-buildbots Test PR w/ refleak buildbots; report in status section label Mar 1, 2025
picnixz added the 🔨 test-with-refleak-buildbots Test PR w/ refleak buildbots; report in status section label Mar 2, 2025

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @picnixz for commit e71f03d 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F130150%2Fmerge

If you want to schedule another build, you need to add the 🔨 test-with-refleak-buildbots label again.

bedevere-bot removed the 🔨 test-with-refleak-buildbots Test PR w/ refleak buildbots; report in status section label Mar 2, 2025
picnixz marked this pull request as ready for review March 2, 2025 12:00

gpshead 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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

While I'm not a fan of a giant maze of mixin classes from a code clarify point of view (nobody reading code can rationally follow a non-trivial class hierarchy MRO graph in their head)... this refactor should actually work and allow for easier testing of our too many possible implementation choices - and I don't have meaningfully better ideas for that that'd work within the stdlib test suite.

picnixz commented Mar 3, 2025

Copy link
Copy Markdown
Member Author

To ease usage in the future (although you or I will be the one reading this one with IntelliSense from IDE), I've added comments

I previously allowed it to be None for future compatibility, but
I think it's better to construct a fake hash function instead, or
picnixz merged commit 8f11af4 into python:main Mar 3, 2025
picnixz deleted the test/hmac/refactor-99108 branch March 3, 2025 10:22

picnixz commented Mar 3, 2025

Copy link
Copy Markdown
Member Author

Arf, again I forgot about the build bots that don't have the built-in implementations. I'll do something for that so that we can cleanly skip the test.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL