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

Function test_get_referrers

tests/test_class.py:60–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58 reason="Requires CPython 3.13.13+ or 3.14.4+ managed dict traversal support",
59)
60def test_get_referrers():
61 instance = m.DynamicAttr()
62 instance.a = "test"
63 assert instance in gc.get_referrers(instance.__dict__)
64
65
66def test_instance_new():

Callers

nothing calls this directly

Calls 1

DynamicAttrMethod · 0.80

Tested by

no test coverage detected