summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
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 */