1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

test/ruby/test_io.rb: some test methods had been overwritten

http://rubyci.s3.amazonaws.com/ubuntu/ruby-master/log/20201203T123002Z.log.html.gz
```
/home/chkbuild/chkbuild/tmp/build/20201203T123002Z/ruby/test/ruby/test_io.rb:1830:
warning: method redefined; discarding old test_each_byte
/home/chkbuild/chkbuild/tmp/build/20201203T123002Z/ruby/test/ruby/test_io.rb:376:
warning: previous definition of test_each_byte was here
test/unit warning: method TestIO#test_each_byte is redefined
/home/chkbuild/chkbuild/tmp/build/20201203T123002Z/ruby/test/ruby/test_io.rb:1849:
warning: method redefined; discarding old test_each_char
/home/chkbuild/chkbuild/tmp/build/20201203T123002Z/ruby/test/ruby/test_io.rb:1799:
warning: previous definition of test_each_char was here
test/unit warning: method TestIO#test_each_char is redefined
```
This commit is contained in:
Yusuke Endoh 2020-12-03 23:34:46 +09:00
parent 2a99fea89e
commit bc4ca06f90

View file

@ -1827,7 +1827,7 @@ class TestIO < Test::Unit::TestCase
end)
end
def test_each_byte
def test_each_byte2
pipe(proc do |w|
w.binmode
w.puts "foo"
@ -1846,7 +1846,7 @@ class TestIO < Test::Unit::TestCase
end)
end
def test_each_char
def test_each_char2
pipe(proc do |w|
w.puts "foo"
w.puts "bar"