SIGN IN SIGN UP

gh-136438: Make sure `test_ast` pass with all optimization levels (#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>
M
Mikhail Efimov committed
03017a8cc2242d881a3042b1eb9084c9bae9f85d
Parent: 28937d3
Committed by GitHub <noreply@github.com> on 7/18/2025, 4:07:46 PM