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

Function test_cpp_callable_cleanup

tests/test_callbacks.py:103–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

101
102@pytest.mark.skipif("env.GRAALPY", reason="Cannot reliably trigger GC")
103def test_cpp_callable_cleanup():
104 alive_counts = m.test_cpp_callable_cleanup()
105 assert alive_counts == [0, 1, 2, 1, 2, 1, 0]
106
107
108def test_cpp_function_roundtrip():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected