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

Method test_loop_caller_importing

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

Source from the content-addressed store, hash-verified

296 self.tracer.runfunc()
297
298 def test_loop_caller_importing(self):
299 self.tracer.runfunc(traced_func_importing_caller, 1)
300
301 expected = {
302 self.filemod + ('traced_func_simple_caller',): 1,
303 self.filemod + ('traced_func_linear',): 1,
304 self.filemod + ('traced_func_importing_caller',): 1,
305 self.filemod + ('traced_func_importing',): 1,
306 (fix_ext_py(testmod.__file__), 'testmod', 'func'): 1,
307 }
308 self.assertEqual(self.tracer.results().calledfuncs, expected)
309
310 @unittest.expectedFailure # TODO: RUSTPYTHON
311 @unittest.skipIf(hasattr(sys, 'gettrace') and sys.gettrace(),

Callers

nothing calls this directly

Calls 4

fix_ext_pyFunction · 0.85
runfuncMethod · 0.80
resultsMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected