summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-05-22 21:44:02 (GMT)
committerGitHub <noreply@github.com>2019-05-22 21:44:02 (GMT)
commite4d300e07c33a9a77549c62d8687d8fe130c53d5 (patch)
tree165c92b9c1ff6f78bbffbcb4c7d68979091fc061 /Misc
parent904e34d4e6b6007986dcc585d5c553ee8ae06f95 (diff)
downloadcpython-e4d300e07c33a9a77549c62d8687d8fe130c53d5.zip
cpython-e4d300e07c33a9a77549c62d8687d8fe130c53d5.tar.gz
cpython-e4d300e07c33a9a77549c62d8687d8fe130c53d5.tar.bz2
bpo-36829: Add test.support.catch_unraisable_exception() (GH-13490)
* Copy test_exceptions.test_unraisable() to test_sys.UnraisableHookTest(). * Use catch_unraisable_exception() in test_coroutines, test_exceptions, test_generators.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Tests/2019-05-22-12-57-15.bpo-36829.e9mRWC.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Tests/2019-05-22-12-57-15.bpo-36829.e9mRWC.rst b/Misc/NEWS.d/next/Tests/2019-05-22-12-57-15.bpo-36829.e9mRWC.rst
new file mode 100644
index 0000000..4ab342b
--- /dev/null
+++ b/Misc/NEWS.d/next/Tests/2019-05-22-12-57-15.bpo-36829.e9mRWC.rst
@@ -0,0 +1,2 @@
+Add :func:`test.support.catch_unraisable_exception`: context manager
+catching unraisable exception using :func:`sys.unraisablehook`.