We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9219c83 commit 367c441Copy full SHA for 367c441
1 file changed
Lib/test/test_ast/test_ast.py
@@ -1177,8 +1177,9 @@ def iter_ast_classes():
1177
def do(cls):
1178
if cls.__module__ != 'ast':
1179
return
1180
- if cls is ast.Index:
1181
- return
+ with warnings.catch_warnings(action="ignore", category=DeprecationWarning):
+ if cls is ast.Index:
1182
+ return
1183
# Don't attempt to create instances of abstract AST nodes
1184
if _ast._is_abstract(cls):
1185
0 commit comments