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

Method test_arg_errors

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

Source from the content-addressed store, hash-verified

288 self.assertEqual(self.tracer.results().calledfuncs, expected)
289
290 def test_arg_errors(self):
291 res = self.tracer.runfunc(traced_capturer, 1, 2, self=3, func=4)
292 self.assertEqual(res, ((1, 2), {'self': 3, 'func': 4}))
293 with self.assertRaises(TypeError):
294 self.tracer.runfunc(func=traced_capturer, arg=1)
295 with self.assertRaises(TypeError):
296 self.tracer.runfunc()
297
298 def test_loop_caller_importing(self):
299 self.tracer.runfunc(traced_func_importing_caller, 1)

Callers

nothing calls this directly

Calls 3

runfuncMethod · 0.80
assertEqualMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected