ruby-changes:73967
From: Yusuke <ko1@a...>
Date: Wed, 12 Oct 2022 21:52:01 +0900 (JST)
Subject: [ruby-changes:73967] 504e388525 (master): Suppress a "warning: method redefined" in test/ruby/test_method.rb
https://git.ruby-lang.org/ruby.git/commit/?id=504e388525 From 504e388525ca7a1eeac64d08731f036b2ffc7b07 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Wed, 12 Oct 2022 21:51:23 +0900 Subject: Suppress a "warning: method redefined" in test/ruby/test_method.rb --- test/ruby/test_method.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/test/ruby/test_method.rb b/test/ruby/test_method.rb index b1eee7381a..d2c7b6e1dd 100644 --- a/test/ruby/test_method.rb +++ b/test/ruby/test_method.rb @@ -1314,6 +1314,7 @@ class TestMethod < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_method.rb#L1314 m2 = c2.instance_method(:foo) c1.class_exec do + remove_method :foo def foo [:bar2] end -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/