MCPcopy Index your code
hub / github.com/python/cpython / collect_testinternalcapi

Function collect_testinternalcapi

Lib/test/pythoninfo.py:712–724  ·  view source on GitHub ↗
(info_add)

Source from the content-addressed store, hash-verified

710
711
712def collect_testinternalcapi(info_add):
713 try:
714 import _testinternalcapi
715 except ImportError:
716 return
717
718 call_func(info_add, 'pymem.allocator', _testinternalcapi, 'pymem_getallocatorsname')
719
720 for name in (
721 'SIZEOF_PYGC_HEAD',
722 'SIZEOF_PYOBJECT',
723 ):
724 copy_attr(info_add, f'_testinternalcapi.{name}', _testinternalcapi, name)
725
726
727def collect_resource(info_add):

Callers

nothing calls this directly

Calls 2

call_funcFunction · 0.85
copy_attrFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…