ruby-changes:67360
From: Hiroshi <ko1@a...>
Date: Mon, 30 Aug 2021 12:39:41 +0900 (JST)
Subject: [ruby-changes:67360] f3ae14cbde (master): [ruby/irb] Use capture_output instead of capture_io
https://git.ruby-lang.org/ruby.git/commit/?id=f3ae14cbde From f3ae14cbdeb06bcaf4745bb5d5253b8c62ddb102 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA <hsbt@r...> Date: Mon, 31 May 2021 14:57:49 +0900 Subject: [ruby/irb] Use capture_output instead of capture_io https://github.com/ruby/irb/commit/077e4ae7de --- test/irb/test_context.rb | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/test/irb/test_context.rb b/test/irb/test_context.rb index 8bc259d..1fb1572 100644 --- a/test/irb/test_context.rb +++ b/test/irb/test_context.rb @@ -221,7 +221,7 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_context.rb#L221 # The default irb.context.echo = true irb.context.echo_on_assignment = false - out, err = capture_io do + out, err = capture_output do irb.eval_input end assert_empty err @@ -231,7 +231,7 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_context.rb#L231 input.reset irb.context.echo = true irb.context.echo_on_assignment = true - out, err = capture_io do + out, err = capture_output do irb.eval_input end assert_empty err @@ -241,7 +241,7 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_context.rb#L241 input.reset irb.context.echo = false irb.context.echo_on_assignment = false - out, err = capture_io do + out, err = capture_output do irb.eval_input end assert_empty err @@ -251,7 +251,7 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_context.rb#L251 input.reset irb.context.echo = false irb.context.echo_on_assignment = true - out, err = capture_io do + out, err = capture_output do irb.eval_input end assert_empty err @@ -269,7 +269,7 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_context.rb#L269 irb.context.echo = true irb.context.echo_on_assignment = false - out, err = capture_io do + out, err = capture_output do irb.eval_input end assert_empty err @@ -278,7 +278,7 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_context.rb#L278 input.reset irb.context.echo = true irb.context.echo_on_assignment = :truncate - out, err = capture_io do + out, err = capture_output do irb.eval_input end assert_empty err @@ -287,7 +287,7 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_context.rb#L287 input.reset irb.context.echo = true irb.context.echo_on_assignment = true - out, err = capture_io do + out, err = capture_output do irb.eval_input end assert_empty err @@ -296,7 +296,7 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_context.rb#L296 input.reset irb.context.echo = false irb.context.echo_on_assignment = false - out, err = capture_io do + out, err = capture_output do irb.eval_input end assert_empty err @@ -305,7 +305,7 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_context.rb#L305 input.reset irb.context.echo = false irb.context.echo_on_assignment = :truncate - out, err = capture_io do + out, err = capture_output do irb.eval_input end assert_empty err @@ -314,7 +314,7 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_context.rb#L314 input.reset irb.context.echo = false irb.context.echo_on_assignment = true - out, err = capture_io do + out, err = capture_output do irb.eval_input end assert_empty err @@ -333,7 +333,7 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_context.rb#L333 irb.context.echo = true irb.context.echo_on_assignment = false - out, err = capture_io do + out, err = capture_output do irb.eval_input end assert_empty err @@ -343,7 +343,7 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_context.rb#L343 input.reset irb.context.echo = true irb.context.echo_on_assignment = :truncate - out, err = capture_io do + out, err = capture_output do irb.eval_input end assert_empty err @@ -353,7 +353,7 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_context.rb#L353 input.reset irb.context.echo = true irb.context.echo_on_assignment = true - out, err = capture_io do + out, err = capture_output do irb.eval_input end assert_empty err @@ -363,7 +363,7 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_context.rb#L363 input.reset irb.context.echo = false irb.context.echo_on_assignment = false - out, err = capture_io do + out, err = capture_output do irb.eval_input end assert_empty err @@ -373,7 +373,7 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_context.rb#L373 input.reset irb.context.echo = false irb.context.echo_on_assignment = :truncate - out, err = capture_io do + out, err = capture_output do irb.eval_input end assert_empty err @@ -383,7 +383,7 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_context.rb#L383 input.reset irb.context.echo = false irb.context.echo_on_assignment = true - out, err = capture_io do + out, err = capture_output do irb.eval_input end assert_empty err @@ -430,7 +430,7 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_context.rb#L430 # The default irb.context.newline_before_multiline_output = true - out, err = capture_io do + out, err = capture_output do irb.eval_input end assert_empty err @@ -440,7 +440,7 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_context.rb#L440 # No newline before multiline output input.reset irb.context.newline_before_multiline_output = false - out, err = capture_io do + out, err = capture_output do irb.eval_input end assert_empty err -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/