Test new-style exception printing

This commit is contained in:
Jeff Epler 2022-10-13 09:24:56 -05:00
parent 448eb1b70b
commit 9ecb905061
No known key found for this signature in database
GPG Key ID: D5BF15AB975AB4DE

View File

@ -15,7 +15,7 @@ except Exception as exc:
print("\nNo Trace:")
traceback.print_exception(None, exc, None)
print("\nDefault Trace:")
traceback.print_exception(None, exc, exc.__traceback__)
traceback.print_exception(exc)
print("\nLimit=1 Trace:")
traceback.print_exception(None, exc, exc.__traceback__, limit=1)
print("\nLimit=0 Trace:")