diff options
author | Nobuyoshi Nakada <[email protected]> | 2020-07-26 13:20:19 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2021-09-17 11:14:08 +0900 |
commit | fd918d1afa89405c194e90476373f936b3577df0 (patch) | |
tree | 07838c9b7ac04483ed314541f0581c8b8f68a5b3 /test/ruby/test_module.rb | |
parent | 178ee1e801acb33d13b3e8a630f6ca4926c68fbc (diff) |
Removed Module.allocate [Bug #17048]
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4858
Diffstat (limited to 'test/ruby/test_module.rb')
-rw-r--r-- | test/ruby/test_module.rb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/test/ruby/test_module.rb b/test/ruby/test_module.rb index bbe84cd9ff..b36b8b7810 100644 --- a/test/ruby/test_module.rb +++ b/test/ruby/test_module.rb @@ -3094,18 +3094,6 @@ class TestModule < Test::Unit::TestCase assert_match(/::Foo$/, mod.name, '[Bug #14895]') end - def test_include_allocated - assert_raise(ArgumentError) do - Module.new {include Module.allocate} - end - assert_raise(ArgumentError) do - Module.new {prepend Module.allocate} - end - assert_raise(ArgumentError) do - Object.new.extend Module.allocate - end - end - private def assert_top_method_is_private(method) |