MCPcopy Index your code
hub / github.com/RustPython/RustPython / collect_testinternalcapi

Function collect_testinternalcapi

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

Source from the content-addressed store, hash-verified

693
694
695def collect_testinternalcapi(info_add):
696 try:
697 import _testinternalcapi
698 except ImportError:
699 return
700
701 call_func(info_add, 'pymem.allocator', _testinternalcapi, 'pymem_getallocatorsname')
702
703 for name in (
704 'SIZEOF_PYGC_HEAD',
705 'SIZEOF_PYOBJECT',
706 ):
707 copy_attr(info_add, f'_testinternalcapi.{name}', _testinternalcapi, name)
708
709
710def 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