summaryrefslogtreecommitdiff
path: root/Lib/test/test_binascii.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-01-30 09:01:07 +0100
committerGitHub <noreply@github.com>2020-01-30 09:01:07 +0100
commit5eb8bff7e4aa7e4d8580a30323641388c8ff59a5 (patch)
treee4bee43cdb4ce310407b9c3665cc24c015978e3c /Lib/test/test_binascii.py
parent188bb5b1e868eecf2342195dc45caa332ac3b6c7 (diff)
downloadcpython-git-5eb8bff7e4aa7e4d8580a30323641388c8ff59a5.tar.gz
bpo-38631: Replace Py_FatalError() with _PyObject_ASSERT_FAILED_MSG() (GH-18258)
Replace Py_FatalError() with _PyObject_ASSERT_FAILED_MSG() in object.c and typeobject.c to also dump the involved Python object on a fatal error. It should ease debug when such fatal error occurs. If the double linked list is inconsistent, _Py_ForgetReference() no longer dumps previous and next objects in the fatal error, it now only dumps the current object. It ensures that the error message is displayed even if dumping the object does crash Python. Enhance _Py_ForgetReference() error messages; _PyObject_ASSERT_FAILED_MSG() logs the "_Py_ForgetReference" function name.
Diffstat (limited to 'Lib/test/test_binascii.py')
0 files changed, 0 insertions, 0 deletions