Suppress constant redefinition warnings

This commit is contained in:
Nobuyoshi Nakada 2021-01-11 00:33:26 +09:00
parent c63552eab1
commit 480f436dac
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
3 changed files with 9 additions and 1 deletions

View file

@ -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