aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python
diff options
context:
space:
mode:
Diffstat (limited to 'Python')
-rw-r--r--Python/pystate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/pystate.c b/Python/pystate.c
index a024ae7e380..849a4eec86a 100644
--- a/Python/pystate.c
+++ b/Python/pystate.c
@@ -263,10 +263,10 @@ static void
unbind_tstate(PyThreadState *tstate)
{
assert(tstate != NULL);
- // XXX assert(tstate_is_alive(tstate));
assert(tstate_is_bound(tstate));
- // XXX assert(!tstate->_status.active);
+#ifndef HAVE_PTHREAD_STUBS
assert(tstate->thread_id > 0);
+#endif
#ifdef PY_HAVE_THREAD_NATIVE_ID
assert(tstate->native_thread_id > 0);
#endif