summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-06-14 08:15:39 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-06-14 08:46:22 +0900
commit50bb8b6052a1fdec72ac46f9736719438fd5002c (patch)
tree234a498c129eda0b59f8846d9d1158643e747d6a
parent9402d019a51cf74cd6fceab534d4f1bde23a75e7 (diff)
Use Exception#full_message for traceback
-rw-r--r--test/lib/test/unit/assertions.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/test/lib/test/unit/assertions.rb b/test/lib/test/unit/assertions.rb
index bee32d1..c3a2a5b 100644
--- a/test/lib/test/unit/assertions.rb
+++ b/test/lib/test/unit/assertions.rb
@@ -858,13 +858,7 @@ eom
msg = "exceptions on #{errs.length} threads:\n" +
errs.map {|t, err|
"#{t.inspect}:\n" +
- err.backtrace.map.with_index {|line, i|
- if i == 0
- "#{line}: #{err.message} (#{err.class})"
- else
- "\tfrom #{line}"
- end
- }.join("\n")
+ err.full_message(highlight: false, order: :top)
}.join("\n---\n")
if message
msg = "#{message}\n#{msg}"