-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
gh-122292: Split up Lib/test/test_ast.py
into a couple of files
#122293
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
Conversation
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.
I like the idea of simplier tests. Backports are required, so we can manage this with ease in the future.
Lib/test/test_ast/test_snippets.py
Outdated
raise SystemExit | ||
unittest.main() | ||
|
||
#### EVERYTHING BELOW IS GENERATED BY python Lib/test/test_ast/test_cases.py -g ##### |
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.
Would it be possible to put generated data in a separated file?
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.
I've decided to move the snippets and generated data to test_ast/snippets.py
. I think it is better, so there is no need for an extra file test_snippets.py
Lib/test/test_ast.py
into a Lib/test/test_ast/test_ast.py
and Lib/test/test_ast/test_snippets.py
Lib/test/test_ast.py
into a couple of files
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
Sorry, @Eclips4 and @vstinner, I could not cleanly backport this to
|
Sorry, @Eclips4 and @vstinner, I could not cleanly backport this to
|
@Eclips4: It seems like the backport should be done manually. Can you do it for 3.13? |
Yes, I will do this! I'd also like to backport this to 3.12. Or do you think we should not backport this change to 3.12? |
…le of files (pythonGH-122293) (cherry picked from commit 9187484) Co-authored-by: Kirill Podoprigora <[email protected]>
GH-122393 is a backport of this pull request to the 3.13 branch. |
…le of files (pythonGH-122293) (cherry picked from commit 9187484) Co-authored-by: Kirill Podoprigora <[email protected]>
GH-122395 is a backport of this pull request to the 3.12 branch. |
Lib/test/test_ast.py
#122292