(self)
| 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 | |
| 3704 | class ASTOptimizationTests(unittest.TestCase): |
nothing calls this directly
no test coverage detected