From 46b71acd807c575bb87ef2301b64a460651733f0 Mon Sep 17 00:00:00 2001 From: tompng Date: Sat, 14 Oct 2023 23:52:40 +0900 Subject: [PATCH] Restore encoding in InputCompletor test --- 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 ed5b88d66..0da7a7471 100644 --- a/test/irb/test_completion.rb +++ b/test/irb/test_completion.rb @@ -268,12 +268,14 @@ def instance_variables; end 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