diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-05-22 21:44:02 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-22 21:44:02 (GMT) |
commit | e4d300e07c33a9a77549c62d8687d8fe130c53d5 (patch) | |
tree | 165c92b9c1ff6f78bbffbcb4c7d68979091fc061 /Misc | |
parent | 904e34d4e6b6007986dcc585d5c553ee8ae06f95 (diff) | |
download | cpython-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.rst | 2 |
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`. |