ruby-changes:63878
From: Yusuke <ko1@a...>
Date: Thu, 3 Dec 2020 23:36:11 +0900 (JST)
Subject: [ruby-changes:63878] bc4ca06f90 (master): test/ruby/test_io.rb: some test methods had been overwritten
https://git.ruby-lang.org/ruby.git/commit/?id=bc4ca06f90 From bc4ca06f90c0da09fe3a6d2ab29e260b9b9cfe1b Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Thu, 3 Dec 2020 23:34:46 +0900 Subject: 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 ``` diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index 9ce05e9..29903e9 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -1827,7 +1827,7 @@ class TestIO < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_io.rb#L1827 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 https://github.com/ruby/ruby/blob/trunk/test/ruby/test_io.rb#L1846 end) end - def test_each_char + def test_each_char2 pipe(proc do |w| w.puts "foo" w.puts "bar" -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/