MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_c_call

Method test_c_call

Lib/test/test_monitoring.py:1158–1174  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

check_eventsMethod · 0.45

Tested by

no test coverage detected