]> granicus.if.org Git - python/commit
bpo-37261: Fix support.catch_unraisable_exception() (GH-14052)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 13 Jun 2019 13:25:59 +0000 (06:25 -0700)
committerGitHub <noreply@github.com>
Thu, 13 Jun 2019 13:25:59 +0000 (06:25 -0700)
commitb4f5b212535e75503fc33513676837089037bb48
treeab54ef06a054cdcae191bd3eb49ae1f19ad827d4
parent0a9baec16c17d261377fb8a31a57d8c397e25af6
bpo-37261: Fix support.catch_unraisable_exception() (GH-14052)

The __exit__() method of test.support.catch_unraisable_exception
context manager now ignores unraisable exception raised when clearing
self.unraisable attribute.
(cherry picked from commit 6d22cc8e90ccb1e1965b1a4bc79456e2cc1e5a3e)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
Doc/library/test.rst
Lib/test/support/__init__.py
Misc/NEWS.d/next/Tests/2019-06-13-12-19-56.bpo-37261.NuKFVo.rst [new file with mode: 0644]