Skip to content

Commit a74d5cc

Browse files
committed
Remove test causing warning
The test is no longer useful since 5c7dfe8 because Module#initialize_copy is empty/not defined anymore.
1 parent e3675e8 commit a74d5cc

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

test/ruby/test_module.rb

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -412,16 +412,6 @@ def test_constants
412412
assert_equal([:MIXIN, :USER], User.constants.sort)
413413
end
414414

415-
def test_initialize_copy
416-
mod = Module.new { define_method(:foo) {:first} }
417-
klass = Class.new { include mod }
418-
instance = klass.new
419-
assert_equal(:first, instance.foo)
420-
new_mod = Module.new { define_method(:foo) { :second } }
421-
4.times { GC.start }
422-
assert_equal(:first, instance.foo) # [BUG] unreachable
423-
end
424-
425415
def test_initialize_copy_empty
426416
m = Module.new do
427417
def x

0 commit comments

Comments
 (0)