(self)
| 1156 | ('call', 'set_events', 2)]) |
| 1157 | |
| 1158 | def test_c_call(self): |
| 1159 | |
| 1160 | def func2(): |
| 1161 | line1 = 1 |
| 1162 | [].append(2) |
| 1163 | line3 = 3 |
| 1164 | |
| 1165 | self.check_events(func2, recorders = MANY_RECORDERS, expected = [ |
| 1166 | ('line', 'get_events', 10), |
| 1167 | ('call', 'func2', sys.monitoring.MISSING), |
| 1168 | ('line', 'func2', 1), |
| 1169 | ('line', 'func2', 2), |
| 1170 | ('call', 'append', [2]), |
| 1171 | ('C return', 'append', [2]), |
| 1172 | ('line', 'func2', 3), |
| 1173 | ('line', 'get_events', 11), |
| 1174 | ('call', 'set_events', 2)]) |
| 1175 | |
| 1176 | def test_try_except(self): |
| 1177 |
nothing calls this directly
no test coverage detected