MCPcopy Create free account
hub / github.com/Distributive-Network/PythonMonkey / teardown_function

Function teardown_function

tests/python/conftest.py:9–15  ·  view source on GitHub ↗

Forcing garbage collection (twice) whenever a test function finishes, to locate GC-related errors

()

Source from the content-addressed store, hash-verified

7
8@pytest.fixture(scope="function", autouse=True)
9def teardown_function():
10 """
11 Forcing garbage collection (twice) whenever a test function finishes,
12 to locate GC-related errors
13 """
14 gc.collect(), pm.collect()
15 gc.collect(), pm.collect()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected