[前][次][番号順一覧][スレッド一覧]

ruby-changes:68519

From: Nobuyoshi <ko1@a...>
Date: Mon, 18 Oct 2021 17:36:26 +0900 (JST)
Subject: [ruby-changes:68519] d1b8544b4d (master): Remove `Test::Unit::Assertions#exception_details`

https://git.ruby-lang.org/ruby.git/commit/?id=d1b8544b4d

From d1b8544b4df4d5620b05090f1bdd4234d4c2e2b5 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Mon, 18 Oct 2021 15:42:11 +0900
Subject: Remove `Test::Unit::Assertions#exception_details`

Never used since fa0f3eff228bb26de6d5b0e1238b1f358165dbd0.
---
 tool/lib/test/unit/assertions.rb | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/tool/lib/test/unit/assertions.rb b/tool/lib/test/unit/assertions.rb
index 065a7a0a46..3deeb8fcdc 100644
--- a/tool/lib/test/unit/assertions.rb
+++ b/tool/lib/test/unit/assertions.rb
@@ -344,20 +344,6 @@ module Test https://github.com/ruby/ruby/blob/trunk/tool/lib/test/unit/assertions.rb#L344
         raise NoMethodError, "use capture_output"
       end
 
-      ##
-      # Returns details for exception +e+
-
-      def exception_details e, msg
-        [
-        "#{msg}",
-        "Class: <#{e.class}>",
-        "Message: <#{e.message.inspect}>",
-        "---Backtrace---",
-        "#{Test::filter_backtrace(e.backtrace).join("\n")}",
-        "---------------",
-        ].join "\n"
-      end
-
       ##
       # Fails with +msg+
 
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]