-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
gh-136438: Make sure test_ast
pass with all optimization levels
#136596
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
I believe the explanation is as follows: |
Co-authored-by: Kirill Podoprigora <[email protected]>
Exactly. I've added checks only in those tests that fail with |
Thank you @efimov-mikhail! |
Thx for merge, @Eclips4 ! |
…ls (python#136596) Explicitly pass an `optimizer` parameter to the calls of `ast.parse/compile`, because if it is not provided, the interpreter will use its internal state, which can be modified using the `-O` or `-OO` flags. Co-authored-by: Kirill Podoprigora <[email protected]>
…ls (python#136596) Explicitly pass an `optimizer` parameter to the calls of `ast.parse/compile`, because if it is not provided, the interpreter will use its internal state, which can be modified using the `-O` or `-OO` flags. Co-authored-by: Kirill Podoprigora <[email protected]>
Now tests pass with all combinations of -OO and --without-doc-strings.
It was long lists of errors before, but all proposed fixes are just to add some needed
optimize=False
options.-OO
#136438