MCPcopy Create free account
hub / github.com/pybind/pybind11 / test_lambda_closure_cleanup

Function test_lambda_closure_cleanup

tests/test_callbacks.py:94–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92
93@pytest.mark.skipif("env.GRAALPY", reason="Cannot reliably trigger GC")
94def test_lambda_closure_cleanup():
95 m.test_lambda_closure_cleanup()
96 cstats = m.payload_cstats()
97 assert cstats.alive() == 0
98 assert cstats.copy_constructions == 1
99 assert cstats.move_constructions >= 1
100
101
102@pytest.mark.skipif("env.GRAALPY", reason="Cannot reliably trigger GC")

Callers

nothing calls this directly

Calls 1

aliveMethod · 0.80

Tested by

no test coverage detected