test format_exception too

This commit is contained in:
Jeff Epler 2022-10-13 08:44:31 -05:00
parent 7e4b2a09eb
commit c6bbb0e4f6
No known key found for this signature in database
GPG Key ID: D5BF15AB975AB4DE

View File

@ -21,7 +21,7 @@ except Exception as exc:
print("\nLimit=0 Trace:")
traceback.print_exception(None, exc, exc.__traceback__, limit=0)
print("\nLimit=-1 Trace:")
traceback.print_exception(None, exc, exc.__traceback__, limit=-1)
print(traceback.format_exception(None, exc, exc.__traceback__, limit=-1), end="")
class NonNativeException(Exception):