summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-02-09 23:49:50 +0100
committerVictor Stinner <victor.stinner@gmail.com>2017-02-09 23:49:50 +0100
commitd8858bc383ee8c29bebfdb481d959fa96cb9b869 (patch)
treeeda25c1c0c6fecbc7046e5c11bc556d0ddb8fe13 /Python
parent18bedc08c9a8216c93476e3da1cc4a3922d4cba6 (diff)
downloadcpython-d8858bc383ee8c29bebfdb481d959fa96cb9b869.tar.gz
Issue #29507: Update test_exceptions
test_unraisable() of test_exceptions expects that PyErr_WriteUnraisable(method) fails on repr(method). Before the previous change (7b8df4a5d81d), slot_tp_finalize() called PyErr_WriteUnraisable() with a PyMethodObject. In this case, repr(method) calls repr(self) which is BrokenRepr.__repr__() and the calls raises a new exception. After the previous change, slot_tp_finalize() uses an unbound method: repr() is called on a regular __del__() method which doesn't call repr(self). repr() doesn't fail anymore. PyErr_WriteUnraisable() doesn't call __repr__() anymore, so remove BrokenRepr unit test.
Diffstat (limited to 'Python')
0 files changed, 0 insertions, 0 deletions