Skip to content

Commit a2140fa

Browse files
authored
[3.13] gh-136438: Make sure test_builtins pass with all optimization levels (GH-136474) (#136502)
(cherry picked from commit c176543)
1 parent d223739 commit a2140fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_builtin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ def f(): """doc"""
380380
# test both direct compilation and compilation via AST
381381
codeobjs = []
382382
codeobjs.append(compile(codestr, "<test>", "exec", optimize=optval))
383-
tree = ast.parse(codestr)
383+
tree = ast.parse(codestr, optimize=optval)
384384
codeobjs.append(compile(tree, "<test>", "exec", optimize=optval))
385385
for code in codeobjs:
386386
ns = {}

0 commit comments

Comments
 (0)