8000 gh-131178: Add tests for `ast` command-line interface by donBarbos · Pull Request #133329 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-131178: Add tests for ast command-line interface #133329

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 11 commits into from
May 4, 2025
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
Next Next commit
Update test_ast.py
  • Loading branch information
donBarbos authored May 4, 2025
commit 9f6f5b2907dc173f67709b8166949b5ce58978c2
9 changes: 4 additions & 5 deletions Lib/test/test_ast/test_ast.py
Original file line number Diff line number Diff line change
Expand Up @@ -3203,11 +3203,10 @@ def invoke_ast(self, *flags):
return stdout.getvalue().strip()

def check_output(self, source, expect, *flags):
with self.subTest(source=source, flags=flags):
self.set_source(source)
res = self.invoke_ast(*flags)
expect = self.text_normalize(expect)
self.assertEqual(res, expect)
self.set_source(source)
res = self.invoke_ast(*flags)
expect = self.text_normalize(expect)
self.assertEqual(res, expect)

def test_invocation(self):
# test various combinations of parameters
Expand Down
Loading
0