Close #20500: Don't trigger PyObject_Str assertion at shutdown

This commit is contained in:
Nick Coghlan 2014-02-09 10:43:21 +10:00
parent c9d1a6b85e
commit d979e4335d
4 changed files with 28 additions and 2 deletions

View file

@ -508,7 +508,7 @@ PyObject_Str(PyObject *v)
#ifdef Py_DEBUG
/* PyObject_Str() must not be called with an exception set,
because it may clear it (directly or indirectly) and so the
caller looses its exception */
caller loses its exception */
assert(!PyErr_Occurred());
#endif