diff options
author | Victor Stinner <vstinner@python.org> | 2023-07-24 18:48:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-24 18:48:06 (GMT) |
commit | 307186704d8327d6c67b0650e49b125758a25bbc (patch) | |
tree | bc16b1afa6e77c8d5f9c9b276a4f0f6483c950de /Lib/test/pythoninfo.py | |
parent | d27eb1e406a8789d9eaba6dbfed5c2e5abe294fd (diff) | |
download | cpython-307186704d8327d6c67b0650e49b125758a25bbc.zip cpython-307186704d8327d6c67b0650e49b125758a25bbc.tar.gz cpython-307186704d8327d6c67b0650e49b125758a25bbc.tar.bz2 |
gh-106320: Remove private _PyMem API (#107187)
Move private _PyMem functions to the internal C API (pycore_pymem.h):
* _PyMem_GetCurrentAllocatorName()
* _PyMem_RawStrdup()
* _PyMem_RawWcsdup()
* _PyMem_Strdup()
No longer export these functions.
Move pymem_getallocatorsname() function from _testcapi to _testinternalcapi,
since the API moved to the internal C API.
Diffstat (limited to 'Lib/test/pythoninfo.py')
-rw-r--r-- | Lib/test/pythoninfo.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/pythoninfo.py b/Lib/test/pythoninfo.py index b84c144..e4e098d 100644 --- a/Lib/test/pythoninfo.py +++ b/Lib/test/pythoninfo.py @@ -637,11 +637,11 @@ def collect_decimal(info_add): def collect_testcapi(info_add): try: - import _testcapi + import _testinternalcapi except ImportError: return - call_func(info_add, 'pymem.allocator', _testcapi, 'pymem_getallocatorsname') + call_func(info_add, 'pymem.allocator', _testinternalcapi, 'pymem_getallocatorsname') def collect_resource(info_add): |