ruby-changes:56109
From: Nobuyoshi <ko1@a...>
Date: Fri, 14 Jun 2019 11:45:44 +0900 (JST)
Subject: [ruby-changes:56109] Nobuyoshi Nakada: 50bb8b6052 (trunk): Use Exception#full_message for traceback
https://git.ruby-lang.org/ruby.git/commit/?id=50bb8b6052 From 50bb8b6052a1fdec72ac46f9736719438fd5002c Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Fri, 14 Jun 2019 08:15:39 +0900 Subject: Use Exception#full_message for traceback 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 https://github.com/ruby/ruby/blob/trunk/test/lib/test/unit/assertions.rb#L858 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}" -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/