Bug #9240

TestModule Test No Longer Valid

Added by Simeon Willbanks over 1 year ago. Updated 5 months ago.

[ruby-core:59035]
Status:Closed
Priority:Normal
Assignee:-
ruby -v:ruby 2.1.0dev (2013-12-10 trunk 44106) [x86_64-darwin11.0] Backport:1.9.3: UNKNOWN, 2.0.0: UNKNOWN

Description

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!

Associated revisions

Revision 49102
Added by Hiroshi SHIBATA 5 months ago

  • test/ruby/test_module.rb: Refactor invalid testcase. [fix GH-472][Bug #9240]

History

#1 Updated by Hiroshi SHIBATA over 1 year ago

  • Target version changed from 2.1.0 to current: 2.2.0

#2 Updated by Hiroshi SHIBATA 5 months ago

  • 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][Bug #9240]

Also available in: Atom PDF