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

Function collect_testcapi

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

Source from the content-addressed store, hash-verified

677
678
679def collect_testcapi(info_add):
680 try:
681 import _testcapi
682 except ImportError:
683 return
684
685 for name in (
686 'LONG_MAX', # always 32-bit on Windows, 64-bit on 64-bit Unix
687 'PY_SSIZE_T_MAX',
688 'Py_C_RECURSION_LIMIT',
689 'SIZEOF_TIME_T', # 32-bit or 64-bit depending on the platform
690 'SIZEOF_WCHAR_T', # 16-bit or 32-bit depending on the platform
691 ):
692 copy_attr(info_add, f'_testcapi.{name}', _testcapi, name)
693
694
695def collect_testinternalcapi(info_add):

Callers

nothing calls this directly

Calls 1

copy_attrFunction · 0.85

Tested by

no test coverage detected