From 367c441a8ea123a72a54ff1815c05d649f442991 Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Sat, 2 May 2026 10:14:11 -0700 Subject: [PATCH] ignore --- Lib/test/test_ast/test_ast.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_ast/test_ast.py b/Lib/test/test_ast/test_ast.py index 5dfd40c87d7..3ecc3ab163c 100644 --- a/Lib/test/test_ast/test_ast.py +++ b/Lib/test/test_ast/test_ast.py @@ -1177,8 +1177,9 @@ def iter_ast_classes(): def do(cls): if cls.__module__ != 'ast': return - if cls is ast.Index: - return + with warnings.catch_warnings(action="ignore", category=DeprecationWarning): + if cls is ast.Index: + return # Don't attempt to create instances of abstract AST nodes if _ast._is_abstract(cls): return