From 75fb3cf458fe41b2c935f54b9e5734ced3dc0ece Mon Sep 17 00:00:00 2001 From: tomoya ishida Date: Sun, 15 Oct 2023 00:02:33 +0900 Subject: [PATCH] [ruby/irb] Restore encoding in InputCompletor test (https://github.com/ruby/irb/pull/732) https://github.com/ruby/irb/commit/ef77c232cf --- test/irb/test_completion.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/irb/test_completion.rb b/test/irb/test_completion.rb index ed5b88d66e..0da7a7471e 100644 --- a/test/irb/test_completion.rb +++ b/test/irb/test_completion.rb @@ -268,12 +268,14 @@ module TestIRB class DeprecatedInputCompletorTest < TestCase def setup + save_encodings @verbose, $VERBOSE = $VERBOSE, nil IRB.init_config(nil) IRB.conf[:MAIN_CONTEXT] = IRB::Context.new(IRB::WorkSpace.new(binding)) end def teardown + restore_encodings $VERBOSE = @verbose end