Browse Source
bpo-36829: Add test.support.catch_unraisable_exception() (GH-13490)
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.pull/13511/head
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 108 additions and 43 deletions
-
33Lib/test/support/__init__.py
-
17Lib/test/test_coroutines.py
-
30Lib/test/test_exceptions.py
-
28Lib/test/test_generators.py
-
41Lib/test/test_sys.py
-
2Misc/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`. |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue