[前][次][番号順一覧][スレッド一覧]

ruby-changes:74349

From: Nobuyoshi <ko1@a...>
Date: Fri, 4 Nov 2022 20:43:34 +0900 (JST)
Subject: [ruby-changes:74349] b83074dac7 (master): [ruby/irb] Suppress "switching inspect mode" messages

https://git.ruby-lang.org/ruby.git/commit/?id=b83074dac7

From b83074dac7a3a1353ac8f897a510cecfccc2f7c6 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Fri, 4 Nov 2022 20:43:12 +0900
Subject: [ruby/irb] Suppress "switching inspect mode" messages

https://github.com/ruby/irb/commit/ee068d039b
---
 test/irb/test_cmd.rb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/test/irb/test_cmd.rb b/test/irb/test_cmd.rb
index 09f4b3bae8..2728aa656a 100644
--- a/test/irb/test_cmd.rb
+++ b/test/irb/test_cmd.rb
@@ -629,6 +629,7 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_cmd.rb#L629
       IRB.init_config(nil)
       IRB.conf[:COMMAND_ALIASES] = { :'@' => :whereami }
       workspace = IRB::WorkSpace.new(Object.new)
+      IRB.conf[:VERBOSE] = false
       irb = IRB::Irb.new(workspace, input)
       IRB.conf[:MAIN_CONTEXT] = irb.context
       out, err = capture_output do
@@ -652,6 +653,7 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_cmd.rb#L653
       main.instance_variable_set(:@foo, "foo")
       $bar = "bar"
       workspace = IRB::WorkSpace.new(main)
+      IRB.conf[:VERBOSE] = false
       irb = IRB::Irb.new(workspace, input)
       IRB.conf[:MAIN_CONTEXT] = irb.context
       out, err = capture_output do
-- 
cgit v1.2.3


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]