(self)
| 1148 | ('call', 'set_events', 2)]) |
| 1149 | |
| 1150 | def test_c_call(self): |
| 1151 | |
| 1152 | def func2(): |
| 1153 | line1 = 1 |
| 1154 | [].append(2) |
| 1155 | line3 = 3 |
| 1156 | |
| 1157 | self.check_events(func2, recorders = MANY_RECORDERS, expected = [ |
| 1158 | ('line', 'get_events', 10), |
| 1159 | ('call', 'func2', sys.monitoring.MISSING), |
| 1160 | ('line', 'func2', 1), |
| 1161 | ('line', 'func2', 2), |
| 1162 | ('call', 'append', [2]), |
| 1163 | ('C return', 'append', [2]), |
| 1164 | ('line', 'func2', 3), |
| 1165 | ('line', 'get_events', 11), |
| 1166 | ('call', 'set_events', 2)]) |
| 1167 | |
| 1168 | def test_try_except(self): |
| 1169 |
nothing calls this directly
no test coverage detected