MCPcopy Index your code
hub / github.com/python/cpython / test_c_call

Method test_c_call

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

check_eventsMethod · 0.45

Tested by

no test coverage detected