[ruby/irb] Suppress "switching inspect mode" messages

https://github.com/ruby/irb/commit/565eeb3c19
This commit is contained in:
Nobuyoshi Nakada 2022-10-28 16:32:36 +09:00 committed by Takashi Kokubun
parent 87988756d0
commit d01bcf378b

View File

@ -383,6 +383,7 @@ module TestIRB
"\n", "\n",
]) ])
IRB.conf[:PROMPT_MODE] = :SIMPLE IRB.conf[:PROMPT_MODE] = :SIMPLE
IRB.conf[:VERBOSE] = false
irb = IRB::Irb.new(IRB::WorkSpace.new(self), input) irb = IRB::Irb.new(IRB::WorkSpace.new(self), input)
out, err = capture_output do out, err = capture_output do
irb.eval_input irb.eval_input
@ -404,6 +405,7 @@ module TestIRB
"\n", "\n",
]) ])
IRB.conf[:PROMPT_MODE] = :SIMPLE IRB.conf[:PROMPT_MODE] = :SIMPLE
IRB.conf[:VERBOSE] = false
irb = IRB::Irb.new(IRB::WorkSpace.new(self), input) irb = IRB::Irb.new(IRB::WorkSpace.new(self), input)
out, err = capture_output do out, err = capture_output do
without_rdoc do without_rdoc do