]> granicus.if.org Git - python/commit
bpo-37261: Document sys.unraisablehook corner cases (GH-14059)
authorVictor Stinner <vstinner@redhat.com>
Fri, 14 Jun 2019 16:03:22 +0000 (18:03 +0200)
committerGitHub <noreply@github.com>
Fri, 14 Jun 2019 16:03:22 +0000 (18:03 +0200)
commit212646cae6b7c4ddc8d98c8b9b6d39a5f259e864
treebb98370389d304b2b835efd3791fcbbab07bb320
parent9765efcb39fc03d5b1abec3924388974470a8bd5
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.
Doc/library/sys.rst
Doc/library/test.rst
Doc/library/threading.rst
Lib/test/support/__init__.py
Lib/test/test_io.py