aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/pystate.c
diff options
context:
space:
mode:
authorPeter Bierma <zintensitydev@gmail.com>2025-01-20 06:34:35 -0500
committerGitHub <noreply@github.com>2025-01-20 17:04:35 +0530
commit4d0a6595a06c554c57ebd90ee64ff4c2bec239b8 (patch)
treea44951c47b86cbc327cdd5e1a588b467dc758a36 /Python/pystate.c
parentc6b570e5e3b214d2038645c5fa7806e0fb3f7dcd (diff)
downloadcpython-4d0a6595a06c554c57ebd90ee64ff4c2bec239b8.tar.gz
cpython-4d0a6595a06c554c57ebd90ee64ff4c2bec239b8.zip
gh-128360: Add `_Py_AssertHoldsTstate` as assertion for holding a thread state (#128361)
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Diffstat (limited to 'Python/pystate.c')
-rw-r--r--Python/pystate.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/Python/pystate.c b/Python/pystate.c
index c546b7c3a9f..52703b048d6 100644
--- a/Python/pystate.c
+++ b/Python/pystate.c
@@ -2897,7 +2897,6 @@ _PyInterpreterState_GetConfigCopy(PyConfig *config)
const PyConfig*
_Py_GetConfig(void)
{
- assert(PyGILState_Check());
PyThreadState *tstate = current_fast_get();
_Py_EnsureTstateNotNULL(tstate);
return _PyInterpreterState_GetConfig(tstate->interp);