(info_add)
| 710 | |
| 711 | |
| 712 | def 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 | |
| 727 | def collect_resource(info_add): |