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

Function collect_testcapi

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

Source from the content-addressed store, hash-verified

695
696
697def collect_testcapi(info_add):
698 try:
699 import _testcapi
700 except ImportError:
701 return
702
703 for name in (
704 'LONG_MAX', # always 32-bit on Windows, 64-bit on 64-bit Unix
705 'PY_SSIZE_T_MAX',
706 'SIZEOF_TIME_T', # 32-bit or 64-bit depending on the platform
707 'SIZEOF_WCHAR_T', # 16-bit or 32-bit depending on the platform
708 ):
709 copy_attr(info_add, f'_testcapi.{name}', _testcapi, name)
710
711
712def collect_testinternalcapi(info_add):

Callers

nothing calls this directly

Calls 1

copy_attrFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…