Skip to content

Commit 367c441

Browse files
committed
ignore
1 parent 9219c83 commit 367c441

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Lib/test/test_ast/test_ast.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1177,8 +1177,9 @@ def iter_ast_classes():
11771177
def do(cls):
11781178
if cls.__module__ != 'ast':
11791179
return
1180-
if cls is ast.Index:
1181-
return
1180+
with warnings.catch_warnings(action="ignore", category=DeprecationWarning):
1181+
if cls is ast.Index:
1182+
return
11821183
# Don't attempt to create instances of abstract AST nodes
11831184
if _ast._is_abstract(cls):
11841185
return

0 commit comments

Comments
 (0)