Commit a0bbb940 authored by Stefan Behnel's avatar Stefan Behnel

try to work around a Py_FatalError crash in latest Py3.6 apparently due to a...

try to work around a Py_FatalError crash in latest Py3.6 apparently due to a RuntimeWarning during garbage collection
parent a1849bc7
...@@ -1186,6 +1186,7 @@ static void __Pyx_Coroutine_check_and_dealloc(PyObject *self) { ...@@ -1186,6 +1186,7 @@ static void __Pyx_Coroutine_check_and_dealloc(PyObject *self) {
PyObject_GC_UnTrack(self); PyObject_GC_UnTrack(self);
#if PY_VERSION_HEX >= 0x03030000 || defined(PyErr_WarnFormat) #if PY_VERSION_HEX >= 0x03030000 || defined(PyErr_WarnFormat)
PyErr_WarnFormat(PyExc_RuntimeWarning, 1, "coroutine '%.50S' was never awaited", gen->gi_qualname); PyErr_WarnFormat(PyExc_RuntimeWarning, 1, "coroutine '%.50S' was never awaited", gen->gi_qualname);
PyErr_Clear(); /* just in case, must not keep a live exception during GC */
#else #else
{PyObject *msg; {PyObject *msg;
char *cmsg; char *cmsg;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment