ruby-changes:72320
From: Nobuyoshi <ko1@a...>
Date: Sun, 26 Jun 2022 15:23:43 +0900 (JST)
Subject: [ruby-changes:72320] a2b3f2014c (master): [ruby/irb] Require stringio to use StringIO
https://git.ruby-lang.org/ruby.git/commit/?id=a2b3f2014c From a2b3f2014cf15daa4b608b82a8432b46a13c0e54 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sun, 26 Jun 2022 15:09:56 +0900 Subject: [ruby/irb] Require stringio to use StringIO https://github.com/ruby/irb/commit/e024ab716b --- test/irb/test_context.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/test/irb/test_context.rb b/test/irb/test_context.rb index ad842c2725..b041403cb9 100644 --- a/test/irb/test_context.rb +++ b/test/irb/test_context.rb @@ -132,6 +132,7 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_context.rb#L132 end def test_output_to_pipe + require 'stringio' input = TestInputMethod.new(["n=1"]) input.instance_variable_set(:@stdout, StringIO.new) irb = IRB::Irb.new(IRB::WorkSpace.new(Object.new), input) -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/