MCPcopy
hub / github.com/pytest-dev/pytest / gc_collect_harder

Function gc_collect_harder

src/_pytest/unraisableexception.py:31–33  ·  view source on GitHub ↗
(iterations: int)

Source from the content-addressed store, hash-verified

29
30
31def gc_collect_harder(iterations: int) -> None:
32 for _ in range(iterations):
33 gc.collect()
34
35
36class UnraisableMeta(NamedTuple):

Callers 2

cleanupFunction · 0.85
pytest_unconfigureFunction · 0.85

Calls 1

collectMethod · 0.45

Tested by

no test coverage detected