summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2020-10-14 16:34:24 +0900
committerKoichi Sasada <ko1@atdot.net>2020-10-14 23:15:21 +0900
commit2e8b5968e13139510bd169cc33fdaa8a4b0676fc (patch)
treeff0c1fc09d5d9cc1f20357738f45bf5231c8b55b /test
parent278450de803c59137fff69c4db03cd40c5b5d08a (diff)
remove uneffective test
RubyVM.stat[:global_method_state] is no longer available so this test doesn't check any more.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3657
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_module.rb25
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