test/ruby/test_iseq.rb: Avoid pollution of method namespace
http://rubyci.s3.amazonaws.com/ubuntu/ruby-master/log/20211125T003004Z.log.html.gz ``` [ 4780/21204] TestISeq#test_super_with_anonymous_block/home/chkbuild/chkbuild/tmp/build/20211125T003004Z/ruby/test/ruby/test_iseq.rb:141: warning: method redefined; discarding old touch3 /home/chkbuild/chkbuild/tmp/build/20211125T003004Z/ruby/test/ruby/test_iseq.rb:121: warning: previous definition of touch3 was here = 0.00 s ```
This commit is contained in:
parent
8bde66167f
commit
b5aa161383
@ -97,7 +97,7 @@ class TestISeq < Test::Unit::TestCase
|
||||
|
||||
def test_super_with_block
|
||||
iseq = compile(<<~EOF, __LINE__+1)
|
||||
def touch(*) # :nodoc:
|
||||
def (Object.new).touch(*) # :nodoc:
|
||||
foo { super }
|
||||
end
|
||||
42
|
||||
@ -108,7 +108,7 @@ class TestISeq < Test::Unit::TestCase
|
||||
def test_super_with_block_hash_0
|
||||
iseq = compile(<<~EOF, __LINE__+1)
|
||||
# [Bug #18250] `req` specifically cause `Assertion failed: (key != 0), function hash_table_raw_insert`
|
||||
def touch2(req, *)
|
||||
def (Object.new).touch(req, *)
|
||||
foo { super }
|
||||
end
|
||||
42
|
||||
@ -118,7 +118,7 @@ class TestISeq < Test::Unit::TestCase
|
||||
|
||||
def test_super_with_block_and_kwrest
|
||||
iseq = compile(<<~EOF, __LINE__+1)
|
||||
def touch3(**) # :nodoc:
|
||||
def (Object.new).touch(**) # :nodoc:
|
||||
foo { super }
|
||||
end
|
||||
42
|
||||
@ -138,7 +138,7 @@ class TestISeq < Test::Unit::TestCase
|
||||
|
||||
def test_super_with_anonymous_block
|
||||
iseq = compile(<<~EOF, __LINE__+1)
|
||||
def touch3(&) # :nodoc:
|
||||
def (Object.new).touch(&) # :nodoc:
|
||||
foo { super }
|
||||
end
|
||||
42
|
||||
|
Loading…
x
Reference in New Issue
Block a user