summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-08-24 17:37:41 (GMT)
committerGitHub <noreply@github.com>2023-08-24 17:37:41 (GMT)
commit480a337366f4a5335c599684609d5f59f27805b9 (patch)
treecb20ab981977eb1a10ee1844e5cfcfadaaeb91e2 /Include
parentaa6f787faa4bc45006da4dc2f942fb9b82c98836 (diff)
downloadcpython-480a337366f4a5335c599684609d5f59f27805b9.zip
cpython-480a337366f4a5335c599684609d5f59f27805b9.tar.gz
cpython-480a337366f4a5335c599684609d5f59f27805b9.tar.bz2
gh-106320: Remove private _PyContext_NewHamtForTests() (#108434)
Move the function to the internal C API.
Diffstat (limited to 'Include')
-rw-r--r--Include/cpython/context.h4
-rw-r--r--Include/internal/pycore_context.h5
2 files changed, 5 insertions, 4 deletions
diff --git a/Include/cpython/context.h b/Include/cpython/context.h
index 9879fc7..a3249fc 100644
--- a/Include/cpython/context.h
+++ b/Include/cpython/context.h
@@ -67,10 +67,6 @@ PyAPI_FUNC(PyObject *) PyContextVar_Set(PyObject *var, PyObject *value);
PyAPI_FUNC(int) PyContextVar_Reset(PyObject *var, PyObject *token);
-/* This method is exposed only for CPython tests. Don not use it. */
-PyAPI_FUNC(PyObject *) _PyContext_NewHamtForTests(void);
-
-
#ifdef __cplusplus
}
#endif
diff --git a/Include/internal/pycore_context.h b/Include/internal/pycore_context.h
index f1898cf873..ec884e9 100644
--- a/Include/internal/pycore_context.h
+++ b/Include/internal/pycore_context.h
@@ -68,4 +68,9 @@ struct _pycontexttokenobject {
};
+// _testinternalcapi.hamt() used by tests.
+// Export for '_testcapi' shared extension
+PyAPI_FUNC(PyObject*) _PyContext_NewHamtForTests(void);
+
+
#endif /* !Py_INTERNAL_CONTEXT_H */