Removed Module.allocate [Bug #17048]

This commit is contained in:
Nobuyoshi Nakada 2020-07-26 13:20:19 +09:00
parent 178ee1e801
commit fd918d1afa
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
Notes: git 2021-09-17 19:05:25 +09:00
3 changed files with 2 additions and 26 deletions

View file

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