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