]> granicus.if.org Git - python/commit
bpo-37261: Document sys.unraisablehook corner cases (GH-14059)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 14 Jun 2019 16:59:54 +0000 (09:59 -0700)
committerGitHub <noreply@github.com>
Fri, 14 Jun 2019 16:59:54 +0000 (09:59 -0700)
commit3b976d19c8c09e83eec63a5b62daf4d55bfd6aeb
tree740e9f43e7e73f91f060e175e34d1973e75f52ac
parentb0f6fa8d7d4c6d8263094124df9ef9cf816bbed6
bpo-37261: Document sys.unraisablehook corner cases (GH-14059)

Document reference cycle and resurrected objects issues in
sys.unraisablehook() and threading.excepthook() documentation.

Fix test.support.catch_unraisable_exception(): __exit__() no longer
ignores unraisable exceptions.

Fix test_io test_writer_close_error_on_close(): use a second
catch_unraisable_exception() to catch the BufferedWriter unraisable
exception.
(cherry picked from commit 212646cae6b7c4ddc8d98c8b9b6d39a5f259e864)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
Doc/library/sys.rst
Doc/library/test.rst
Doc/library/threading.rst
Lib/test/support/__init__.py
Lib/test/test_io.py