(self)
| 3498 | self.check_output(source, expect, flag) |
| 3499 | |
| 3500 | def test_single_mode_flag(self): |
| 3501 | # test 'python -m ast -m/--mode single' |
| 3502 | source = 'pass' |
| 3503 | expect = ''' |
| 3504 | Interactive( |
| 3505 | body=[ |
| 3506 | Pass()]) |
| 3507 | ''' |
| 3508 | for flag in ('-m=single', '--mode=single'): |
| 3509 | with self.subTest(flag=flag): |
| 3510 | self.check_output(source, expect, flag) |
| 3511 | |
| 3512 | def test_eval_mode_flag(self): |
| 3513 | # test 'python -m ast -m/--mode eval' |
nothing calls this directly
no test coverage detected