mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
[3.13] gh-136438: Make sure test_builtins pass with all optimization levels (GH-136474) (#136502)
(cherry picked from commit c176543349)
This commit is contained in:
parent
d223739883
commit
a2140fad71
1 changed files with 1 additions and 1 deletions
|
|
@ -380,7 +380,7 @@ def f(): """doc"""
|
|||
# test both direct compilation and compilation via AST
|
||||
codeobjs = []
|
||||
codeobjs.append(compile(codestr, "<test>", "exec", optimize=optval))
|
||||
tree = ast.parse(codestr)
|
||||
tree = ast.parse(codestr, optimize=optval)
|
||||
codeobjs.append(compile(tree, "<test>", "exec", optimize=optval))
|
||||
for code in codeobjs:
|
||||
ns = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue