8000 bpo-40000: Improve AST validation for invalid constant nodes by isidentical · Pull Request #19055 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-40000: Improve AST validation for invalid constant nodes #19055

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

Merged
merged 5 commits into from
Mar 19, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
remove unnecesary cm
  • Loading branch information
isidentical committed Mar 19, 2020
commit fc4f1247c0f12c42bffde8c308e5dd29eeb5f610
2 changes: 1 addition & 1 deletion Lib/test/test_ast.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ def test_invalid_constant(self):
ast.fix_missing_locations(e)
with self.assertRaisesRegex(
TypeError, "invalid type in Constant: type"
) as cm:
):
compile(e, "<test>", "eval")

def test_empty_yield_from(self):
Expand Down
0