bpo-42934: use TracebackException(compact=True) in unittest.TestResult (GH-24221)
diff --git a/Lib/unittest/result.py b/Lib/unittest/result.py
index 111317b..ce7468e 100644
--- a/Lib/unittest/result.py
+++ b/Lib/unittest/result.py
@@ -183,7 +183,8 @@ def _exc_info_to_string(self, err, test):
else:
length = None
tb_e = traceback.TracebackException(
- exctype, value, tb, limit=length, capture_locals=self.tb_locals)
+ exctype, value, tb,
+ limit=length, capture_locals=self.tb_locals, compact=True)
msgLines = list(tb_e.format())
if self.buffer: