Skip to content

Commit 3d75f06

Browse files
Update Lib/test/test_ast/test_ast.py
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
1 parent 738b82d commit 3d75f06

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_ast/test_ast.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def test_snippets(self):
131131
(eval_tests, eval_results, "eval")):
132132
for i, o in zip(input, output):
133133
with self.subTest(action="parsing", input=i):
134-
ast_tree = compile(i, "?", kind, ast.PyCF_ONLY_AST, optimize=0)
134+
ast_tree = compile(i, "?", kind, ast.PyCF_ONLY_AST, optimize=False)
135135
self.assertEqual(to_tuple(ast_tree), o)
136136
self._assertTrueorder(ast_tree, (0, 0))
137137
with self.subTest(action="compiling", input=i, kind=kind):

0 commit comments

Comments
 (0)