MCPcopy Index your code
hub / github.com/python/cpython / _collect_if_necessary

Method _collect_if_necessary

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

Source from the content-addressed store, hash-verified

2116 pass
2117
2118 def _collect_if_necessary(self):
2119 # we create no ref-cycles so in CPython no gc should be needed
2120 if sys.implementation.name != 'cpython':
2121 support.gc_collect()
2122
2123 def test_finalize(self):
2124 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