From: sobolevn Date: Thu, 10 Jul 2025 11:17:20 +0000 (+0300) Subject: [3.13] gh-136438: Make sure `test_builtins` pass with all optimization levels (GH... X-Git-Tag: v3.13.6~103 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a2140fad71fb70619757f6e6580cc14eb41522a7;p=thirdparty%2FPython%2Fcpython.git [3.13] gh-136438: Make sure `test_builtins` pass with all optimization levels (GH-136474) (#136502) (cherry picked from commit c17654334946b232aa296696cf70ec93a09d8156) --- 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 = {}