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

Function test_large_holder

tests/test_smart_ptr.py:166–172  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

164
165@pytest.mark.skipif("env.GRAALPY", reason="Cannot reliably trigger GC")
166def test_large_holder():
167 o = m.MyObject5(5)
168 assert o.value == 5
169 cstats = ConstructorStats.get(m.MyObject5)
170 assert cstats.alive() == 1
171 del o
172 assert cstats.alive() == 0
173
174
175@pytest.mark.skipif("env.GRAALPY", reason="Cannot reliably trigger GC")

Callers

nothing calls this directly

Calls 3

MyObject5Method · 0.80
aliveMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected