(self)
| 1121 | self.do_disassembly_test(f, expect, show_positions=True) |
| 1122 | |
| 1123 | def test_dis_with_no_positions(self): |
| 1124 | def f(): |
| 1125 | pass |
| 1126 | |
| 1127 | f.__code__ = f.__code__.replace(co_linetable=b'') |
| 1128 | expect = '\n'.join([ |
| 1129 | ' RESUME 0', |
| 1130 | ' LOAD_CONST 0 (None)', |
| 1131 | ' RETURN_VALUE', |
| 1132 | '', |
| 1133 | ]) |
| 1134 | self.do_disassembly_test(f, expect, show_positions=True) |
| 1135 | |
| 1136 | def test_bug_708901(self): |
| 1137 | self.do_disassembly_test(bug708901, dis_bug708901) |
nothing calls this directly
no test coverage detected