(self)
| 3524 | self.check_output(source, expect, flag) |
| 3525 | |
| 3526 | def test_single_mode_flag(self): |
| 3527 | # test 'python -m ast -m/--mode single' |
| 3528 | source = 'pass' |
| 3529 | expect = ''' |
| 3530 | Interactive( |
| 3531 | body=[ |
| 3532 | Pass()]) |
| 3533 | ''' |
| 3534 | for flag in ('-m=single', '--mode=single'): |
| 3535 | with self.subTest(flag=flag): |
| 3536 | self.check_output(source, expect, flag) |
| 3537 | |
| 3538 | def test_eval_mode_flag(self): |
| 3539 | # test 'python -m ast -m/--mode eval' |
nothing calls this directly
no test coverage detected