summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2018-05-23 16:00:55 (GMT)
committerGitHub <noreply@github.com>2018-05-23 16:00:55 (GMT)
commitb6dccf54fd3bac9c87348d96f9d6b571608c15bc (patch)
tree5c769cdaed0813ba7641c4caa0de218db88ef31b /Python
parent825aab95fde959541859383f8ea7e7854ebfd49f (diff)
downloadcpython-b6dccf54fd3bac9c87348d96f9d6b571608c15bc.zip
cpython-b6dccf54fd3bac9c87348d96f9d6b571608c15bc.tar.gz
cpython-b6dccf54fd3bac9c87348d96f9d6b571608c15bc.tar.bz2
bpo-33612: Remove PyThreadState_Clear() assertion (#7069)
bpo-25612, bpo-33612: Remove an assertion from PyThreadState_Clear() which failed at Python shutdown or on fork if a thread was running a generator.
Diffstat (limited to 'Python')
-rw-r--r--Python/pystate.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/Python/pystate.c b/Python/pystate.c
index d276bfc..4534c47 100644
--- a/Python/pystate.c
+++ b/Python/pystate.c
@@ -586,7 +586,6 @@ PyThreadState_Clear(PyThreadState *tstate)
Py_CLEAR(tstate->exc_state.exc_traceback);
/* The stack of exception states should contain just this thread. */
- assert(tstate->exc_info->previous_item == NULL);
if (Py_VerboseFlag && tstate->exc_info != &tstate->exc_state) {
fprintf(stderr,
"PyThreadState_Clear: warning: thread still has a generator\n");