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

ruby-changes:68520

From: Nobuyoshi <ko1@a...>
Date: Mon, 18 Oct 2021 17:36:26 +0900 (JST)
Subject: [ruby-changes:68520] 6c74976aef (master): Remove `Test::Unit::TestCase.make_my_diffs_pretty!`

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

From 6c74976aef2b6f3eeecf6bdcb9b2ac2d9105308e Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Mon, 18 Oct 2021 15:43:52 +0900
Subject: Remove `Test::Unit::TestCase.make_my_diffs_pretty!`

`Test::Unit::CoreAssertions#mu_pp` is defined always using
`pretty_inspect`.
---
 tool/lib/test/unit/testcase.rb | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/tool/lib/test/unit/testcase.rb b/tool/lib/test/unit/testcase.rb
index 13256f8ed1..44d9ba7fdb 100644
--- a/tool/lib/test/unit/testcase.rb
+++ b/tool/lib/test/unit/testcase.rb
@@ -236,20 +236,6 @@ module Test https://github.com/ruby/ruby/blob/trunk/tool/lib/test/unit/testcase.rb#L236
 
       reset
 
-      ##
-      # Make diffs for this TestCase use #pretty_inspect so that diff
-      # in assert_equal can be more details. NOTE: this is much slower
-      # than the regular inspect but much more usable for complex
-      # objects.
-
-      def self.make_my_diffs_pretty!
-        require 'pp'
-
-        define_method :mu_pp do |o|
-          o.pretty_inspect
-        end
-      end
-
       def self.inherited klass # :nodoc:
         @@test_suites[klass] = true
         super
-- 
cgit v1.2.1


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

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