(self)
| 3556 | self.check_output(source, expect, '--no-type-comments') |
| 3557 | |
| 3558 | def test_include_attributes_flag(self): |
| 3559 | # test 'python -m ast -a/--include-attributes' |
| 3560 | source = 'pass' |
| 3561 | expect = ''' |
| 3562 | Module( |
| 3563 | body=[ |
| 3564 | Pass( |
| 3565 | lineno=1, |
| 3566 | col_offset=0, |
| 3567 | end_lineno=1, |
| 3568 | end_col_offset=4)]) |
| 3569 | ''' |
| 3570 | for flag in ('-a', '--include-attributes'): |
| 3571 | with self.subTest(flag=flag): |
| 3572 | self.check_output(source, expect, flag) |
| 3573 | |
| 3574 | def test_indent_flag(self): |
| 3575 | # test 'python -m ast -i/--indent 0' |
nothing calls this directly
no test coverage detected