mirror of
https://github.com/ruby/ruby.git
synced 2025-09-23 12:33:56 +02:00
Suppress constant redefinition warnings
This commit is contained in:
parent
c63552eab1
commit
480f436dac
3 changed files with 9 additions and 1 deletions
|
@ -793,6 +793,8 @@ class TestModule < Test::Unit::TestCase
|
|||
assert_equal(prefix+"C", m.const_get(:C).name)
|
||||
c = m.class_eval("Bug15891 = Class.new.freeze")
|
||||
assert_equal(prefix+"Bug15891", c.name)
|
||||
ensure
|
||||
self.class.class_eval {remove_const(:M)}
|
||||
end
|
||||
|
||||
def test_private_class_method
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue