(self)
| 2618 | self.check_output(source, expect, flag) |
| 2619 | |
| 2620 | def test_show_positions(self): |
| 2621 | # test 'python -m dis -P/--show-positions' |
| 2622 | source = 'pass' |
| 2623 | expect = ''' |
| 2624 | 0:0-1:0 RESUME 0 |
| 2625 | |
| 2626 | 1:0-1:4 LOAD_CONST 0 (None) |
| 2627 | 1:0-1:4 RETURN_VALUE |
| 2628 | ''' |
| 2629 | for flag in ['-P', '--show-positions']: |
| 2630 | self.check_output(source, expect, flag) |
| 2631 | |
| 2632 | def test_specialized_code(self): |
| 2633 | # test 'python -m dis -S/--specialized' |
nothing calls this directly
no test coverage detected