-
-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
gh-90916: Improve readability of expected Instruction lists in test_dis #96470
base: main
Are you sure you want to change the base?
Conversation
…test_dis * Use a table with aligned elements rather than a list of `Instruction(key=value, ...)` constructors * Don't specify `positions=None` since it never changes. * Shorten overly-long string literals in test code. * Fix the one test that depends on its own line number.
Most changes to Python require a NEWS entry. Please add it using the blurb_it web app or the blurb command-line tool. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging will be a pain, if i were making this transformation i'd get overly creative with a vim macro and just rerun that to do it. I looped in recent code owners who've been working on bytecode performance work for opinion reviews. (Irit & Mark)
yeah, i'll just regenerate it from the current version |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
There's a test failure due to some whitespace issues. Try running patchcheck on your branch. |
done |
Co-authored-by: Irit Katriel <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ultimately we want to separate the tests for compiler output from the tests for dis behavior.
This is definitely a step in the right direction.
One minor formatting issue, otherwise looks good.
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
Instruction(key=value, ...)
constructorspositions=None
since it never changes.