diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-10-18 15:43:52 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-10-18 17:36:06 +0900 |
commit | 6c74976aef2b6f3eeecf6bdcb9b2ac2d9105308e (patch) | |
tree | 0b25de18da732d1a81e6260bce0589bbc58fe4bb /tool/lib | |
parent | d1b8544b4df4d5620b05090f1bdd4234d4c2e2b5 (diff) |
Remove `Test::Unit::TestCase.make_my_diffs_pretty!`
`Test::Unit::CoreAssertions#mu_pp` is defined always using
`pretty_inspect`.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4983
Diffstat (limited to 'tool/lib')
-rw-r--r-- | tool/lib/test/unit/testcase.rb | 14 |
1 files changed, 0 insertions, 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 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 |