8000 gh-90953: Emit deprecation warnings for deprecated ast features by serhiy-storchaka · Pull Request #31432 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-90953: Emit deprecation warnings for deprecated ast features #31432

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Prev Previous commit
Next Next commit
fix patchcheck
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
  • Loading branch information
AlexWaygood and hugovk authored May 4, 2023
commit fdefe87709bd774b9d02ac584cd52884a5da9ecb
4 changes: 2 additions & 2 deletions Lib/test/test_ast.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,8 +468,8 @@ def test_field_attr_existence_deprecated(self):
# The argument is required.
continue
with self.subTest(item):
with self.assertWarns(DeprecationWarning):
x = item()
with self.assertWarns(DeprecationWarning):
x = item()
if isinstance(x, ast.AST):
self.assertEqual(type(x._fields), tuple)

Expand Down
0