mirror of
https://github.com/python/cpython.git
synced 2025-11-25 12:44:13 +00:00
Close #20500: Don't trigger PyObject_Str assertion at shutdown
This commit is contained in:
parent
c9d1a6b85e
commit
d979e4335d
4 changed files with 28 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue