mirror of
https://github.com/python/cpython.git
synced 2025-12-22 00:19:14 +00:00
gh-134170: Add colorization to unraisable exceptions (#134183)
Default implementation of sys.unraisablehook() now uses traceback._print_exception_bltin() to print exceptions with colorized text. Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
parent
8943bb722f
commit
e8251dc0ae
11 changed files with 55 additions and 6 deletions
|
|
@ -1340,6 +1340,7 @@ class SysModuleTest(unittest.TestCase):
|
|||
|
||||
|
||||
@test.support.cpython_only
|
||||
@force_not_colorized
|
||||
class UnraisableHookTest(unittest.TestCase):
|
||||
def test_original_unraisablehook(self):
|
||||
_testcapi = import_helper.import_module('_testcapi')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue