mirror of
https://github.com/ruby/ruby.git
synced 2025-09-21 19:44:01 +02:00
Removed Module.allocate [Bug #17048]
This commit is contained in:
parent
178ee1e801
commit
fd918d1afa
Notes:
git
2021-09-17 19:05:25 +09:00
3 changed files with 2 additions and 26 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue