Uh oh!
There was an error while loading. Please reload this page.
gh-136438: Make sure test_ast pass with all optimization levels - #136596
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Eclips4
commented
Jul 17, 2025
I believe the explanation is as follows: |
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Exactly. I've added checks only in those tests that fail with |
Uh oh!
There was an error while loading. Please reload this page.
Eclips4
commented
Jul 18, 2025
Thank you @efimov-mikhail! |
efimov-mikhail
commented
Jul 18, 2025
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 <kirill.bast9@mail.ru>
…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 <kirill.bast9@mail.ru>
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=Falseoptions.-OO#136438