From 2c9dd060ab487a96e391793bd782cef6fd471b83 Mon Sep 17 00:00:00 2001 From: nagachika Date: Sat, 5 Sep 2020 19:18:07 +0900 Subject: Revert "Don't display singleton class in Method#inspect unless method defined there" [Backport #16771] This reverts commit 0d24fb774d84d4a99454ce10fd343da00049a588. --- test/ruby/test_method.rb | 8 -------- 1 file changed, 8 deletions(-) (limited to 'test/ruby/test_method.rb') diff --git a/test/ruby/test_method.rb b/test/ruby/test_method.rb index 6ad9620a00..bb506f1258 100644 --- a/test/ruby/test_method.rb +++ b/test/ruby/test_method.rb @@ -459,14 +459,6 @@ class TestMethod < Test::Unit::TestCase c3.class_eval { alias bar foo } m3 = c3.new.method(:bar) assert_equal("#", m3.inspect, bug7806) - - bug15608 = '[ruby-core:91570] [Bug #15608]' - c4 = Class.new(c) - c4.class_eval { alias bar foo } - o = c4.new - o.singleton_class - m4 = o.method(:bar) - assert_equal("#", m4.inspect, bug15608) end def test_callee_top_level -- cgit v1.2.3