summaryrefslogtreecommitdiff
path: root/test/irb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-06-26 15:09:56 +0900
committergit <svn-admin@ruby-lang.org>2022-06-26 15:23:32 +0900
commita2b3f2014cf15daa4b608b82a8432b46a13c0e54 (patch)
treec2b1b9db0974e1ee6759b69aec97dd42cb693e2c /test/irb
parente0bfdb23af3f182d7605a6ac3c93b07001d9045c (diff)
[ruby/irb] Require stringio to use StringIO
https://github.com/ruby/irb/commit/e024ab716b
Diffstat (limited to 'test/irb')
-rw-r--r--test/irb/test_context.rb1
1 files changed, 1 insertions, 0 deletions
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
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)