Skip to content

Commit 4487228

Browse files
committed
[3.13] pythongh-136438: Make sure test_builtins pass with all optimization levels (pythonGH-136474)
(cherry picked from commit c176543) Co-authored-by: sobolevn <mail@sobolevn.me>
1 parent d223739 commit 4487228

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy