https://github.com/python/cpython/commit/a2140fad71fb70619757f6e6580cc14eb41522a7
commit: a2140fad71fb70619757f6e6580cc14eb41522a7
branch: 3.13
author: sobolevn <[email protected]>
committer: sobolevn <[email protected]>
date: 2025-07-10T11:17:20Z
summary:
[3.13] gh-136438: Make sure `test_builtins` pass with all optimization levels
(GH-136474) (#136502)
(cherry picked from commit c17654334946b232aa296696cf70ec93a09d8156)
files:
M Lib/test/test_builtin.py
diff --git a/Lib/test/test_builtin.py b/Lib/test/test_builtin.py
index 70987dd4881e95..88ece3cd8deacd 100644
--- a/Lib/test/test_builtin.py
+++ b/Lib/test/test_builtin.py
@@ -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 = {}
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]