From c6bbb0e4f6c356a17da0e43a17dd0eb491f27c14 Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Thu, 13 Oct 2022 08:44:31 -0500 Subject: [PATCH] test format_exception too --- tests/circuitpython/traceback_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/circuitpython/traceback_test.py b/tests/circuitpython/traceback_test.py index 6ae73db6ae..6f51ceede8 100644 --- a/tests/circuitpython/traceback_test.py +++ b/tests/circuitpython/traceback_test.py @@ -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):