diff --git a/test/irb/test_history.rb b/test/irb/test_history.rb index b211e87be..f7ba2b9d3 100644 --- a/test/irb/test_history.rb +++ b/test/irb/test_history.rb @@ -151,6 +151,7 @@ def test_history_concurrent_use_not_present def test_history_different_encodings backup_default_external = Encoding.default_external IRB.conf[:SAVE_HISTORY] = 2 + verbose_bak, $VERBOSE = $VERBOSE, nil Encoding.default_external = Encoding::US_ASCII locale = IRB::Locale.new("C") assert_history(<<~EXPECTED_HISTORY.encode(Encoding::US_ASCII), <<~INITIAL_HISTORY.encode(Encoding::UTF_8), <<~INPUT, locale: locale) @@ -163,6 +164,7 @@ def test_history_different_encodings INPUT ensure Encoding.default_external = backup_default_external + $VERBOSE = verbose_bak end private