Forcing garbage collection (twice) whenever a test function finishes, to locate GC-related errors
()
| 7 | |
| 8 | @pytest.fixture(scope="function", autouse=True) |
| 9 | def 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() |
nothing calls this directly
no outgoing calls
no test coverage detected