diff options
author | Koichi Sasada <ko1@atdot.net> | 2020-10-14 16:34:24 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2020-10-14 23:15:21 +0900 |
commit | 2e8b5968e13139510bd169cc33fdaa8a4b0676fc (patch) | |
tree | ff0c1fc09d5d9cc1f20357738f45bf5231c8b55b /test | |
parent | 278450de803c59137fff69c4db03cd40c5b5d08a (diff) | |
download | ruby-2e8b5968e13139510bd169cc33fdaa8a4b0676fc.tar.gz |
remove uneffective test
RubyVM.stat[:global_method_state] is no longer available so
this test doesn't check any more.
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_module.rb | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/test/ruby/test_module.rb b/test/ruby/test_module.rb index 3003a743d1..6c0fe6b4a5 100644 --- a/test/ruby/test_module.rb +++ b/test/ruby/test_module.rb @@ -2529,31 +2529,6 @@ class TestModule < Test::Unit::TestCase assert_raise(NoMethodError, bug8284) {Object.remove_const} end - def test_include_module_with_constants_does_not_invalidate_method_cache - assert_in_out_err([], <<-RUBY, %w(123 456 true), []) - A = 123 - - class Foo - def self.a - A - end - end - - module M - A = 456 - end - - puts Foo.a - starting = RubyVM.stat[:global_method_state] - - Foo.send(:include, M) - - ending = RubyVM.stat[:global_method_state] - puts Foo.a - puts starting == ending - RUBY - end - def test_return_value_of_define_method retvals = [] Class.new.class_eval do |