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

Class Break

Lib/test/test_asyncio/test_tasks.py:2781–2783  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2779 def test_proper_refcounts(self):
2780 # see: https://github.com/python/cpython/issues/126083
2781 class Break:
2782 def __str__(self):
2783 raise RuntimeError("break")
2784
2785 obj = object()
2786 initial_refcount = sys.getrefcount(obj)

Callers 4

test_proper_refcountsMethod · 0.85
process_instructionMethod · 0.85
pop_inner_ifMethod · 0.85
ast_from_objectMethod · 0.85

Calls

no outgoing calls

Tested by 2

test_proper_refcountsMethod · 0.68
process_instructionMethod · 0.68