Skip to content
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