MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_show_empty_flag

Method test_show_empty_flag

Lib/test/test_ast/test_ast.py:3685–3701  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3683 self.check_output(source, expect, flag)
3684
3685 def test_show_empty_flag(self):
3686 # test 'python -m ast --show-empty'
3687 source = 'print(1, 2, 3)'
3688 expect = '''
3689 Module(
3690 body=[
3691 Expr(
3692 value=Call(
3693 func=Name(id='print', ctx=Load()),
3694 args=[
3695 Constant(value=1),
3696 Constant(value=2),
3697 Constant(value=3)],
3698 keywords=[]))],
3699 type_ignores=[])
3700 '''
3701 self.check_output(source, expect, '--show-empty')
3702
3703
3704class ASTOptimizationTests(unittest.TestCase):

Callers

nothing calls this directly

Calls 1

check_outputMethod · 0.95

Tested by

no test coverage detected