From 44872284555cfaac3ea133f709f99be9ce797668 Mon Sep 17 00:00:00 2001 From: sobolevn Date: Thu, 10 Jul 2025 11:57:29 +0300 Subject: [PATCH] [3.13] gh-136438: Make sure `test_builtins` pass with all optimization levels (GH-136474) (cherry picked from commit c17654334946b232aa296696cf70ec93a09d8156) Co-authored-by: sobolevn --- 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 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, "", "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 = {}