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

Method test_recursive_call

Lib/test/test_descr.py:3682–3689  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3680 @support.skip_wasi_stack_overflow()
3681 @support.skip_emscripten_stack_overflow()
3682 def test_recursive_call(self):
3683 # Testing recursive __call__() by setting to instance of class...
3684 class A(object):
3685 pass
3686
3687 A.__call__ = A()
3688 with self.assertRaises(RecursionError):
3689 A()()
3690
3691 def test_delete_hook(self):
3692 # Testing __del__ hook...

Callers

nothing calls this directly

Calls 2

AClass · 0.70
assertRaisesMethod · 0.45

Tested by

no test coverage detected