From: shibata.hiroshi@... Date: 2015-01-02T07:21:49+00:00 Subject: [ruby-core:67293] [ruby-trunk - Bug #9240] [Closed] TestModule Test No Longer Valid Issue #9240 has been updated by Hiroshi SHIBATA. Status changed from Open to Closed % Done changed from 0 to 100 Applied in changeset r49102. ---------- * test/ruby/test_module.rb: Refactor invalid testcase. [fix GH-472][ruby-core:59035][Bug #9240] ---------------------------------------- Bug #9240: TestModule Test No Longer Valid https://bugs.ruby-lang.org/issues/9240#change-50755 * Author: Simeon Willbanks * Status: Closed * Priority: Normal * Assignee: * Category: test * Target version: current: 2.2.0 * ruby -v: ruby 2.1.0dev (2013-12-10 trunk 44106) [x86_64-darwin11.0] * Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN ---------------------------------------- TestModule#test_include_module_with_constants_invalidates_method_cache is no longer valid. Test: https://github.com/ruby/ruby/blob/trunk/test/ruby/test_module.rb#L1783-L1801 The Changelog states, "...this means inclusions of modules containing constants no longer globally invalidate the method cache." Changelog: https://github.com/ruby/ruby/blob/trunk/ChangeLog#L2830-L2832 I've refactored the test and used the new RubyVM.stat method. https://github.com/ruby/ruby/pull/472.patch Any input is appreciated. Thanks! -- https://bugs.ruby-lang.org/