(self)
| 2606 | self.check_output(source, expect, flag) |
| 2607 | |
| 2608 | def test_show_offsets(self): |
| 2609 | # test 'python -m dis -O/--show-offsets' |
| 2610 | source = 'pass' |
| 2611 | expect = ''' |
| 2612 | 0 0 RESUME 0 |
| 2613 | |
| 2614 | 1 4 LOAD_CONST 0 (None) |
| 2615 | 6 RETURN_VALUE |
| 2616 | ''' |
| 2617 | for flag in ['-O', '--show-offsets']: |
| 2618 | self.check_output(source, expect, flag) |
| 2619 | |
| 2620 | def test_show_positions(self): |
| 2621 | # test 'python -m dis -P/--show-positions' |
nothing calls this directly
no test coverage detected