From a2140fad71fb70619757f6e6580cc14eb41522a7 Mon Sep 17 00:00:00 2001 From: sobolevn Date: Thu, 10 Jul 2025 14:17:20 +0300 Subject: [PATCH] [3.13] gh-136438: Make sure `test_builtins` pass with all optimization levels (GH-136474) (#136502) (cherry picked from commit c17654334946b232aa296696cf70ec93a09d8156) --- Lib/test/test_builtin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_builtin.py b/Lib/test/test_builtin.py index 70987dd4881e..88ece3cd8dea 100644 --- a/Lib/test/test_builtin.py +++ b/Lib/test/test_builtin.py @@ -380,7 +380,7 @@ class BuiltinTest(unittest.TestCase): # test both direct compilation and compilation via AST codeobjs = [] codeobjs.append(compile(codestr, "", "exec", optimize=optval)) - tree = ast.parse(codestr) + tree = ast.parse(codestr, optimize=optval) codeobjs.append(compile(tree, "", "exec", optimize=optval)) for code in codeobjs: ns = {} -- 2.47.3