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

Method _collect_if_necessary

Lib/test/test_weakref.py:2101–2104  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2099 pass
2100
2101 def _collect_if_necessary(self):
2102 # we create no ref-cycles so in CPython no gc should be needed
2103 if sys.implementation.name != 'cpython':
2104 support.gc_collect()
2105
2106 def test_finalize(self):
2107 def add(x,y,z):

Callers 3

test_finalizeMethod · 0.95
test_orderMethod · 0.95
test_all_freedMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected