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

Method test_simple_caller

Lib/test/test_trace.py:279–286  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

277 sys.settrace(self._saved_tracefunc)
278
279 def test_simple_caller(self):
280 self.tracer.runfunc(traced_func_simple_caller, 1)
281
282 expected = {
283 self.filemod + ('traced_func_simple_caller',): 1,
284 self.filemod + ('traced_func_linear',): 1,
285 }
286 self.assertEqual(self.tracer.results().calledfuncs, expected)
287
288 def test_arg_errors(self):
289 res = self.tracer.runfunc(traced_capturer, 1, 2, self=3, func=4)

Callers

nothing calls this directly

Calls 3

runfuncMethod · 0.80
resultsMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected