[ruby/irb] Restore encoding in InputCompletor test

(https://github.com/ruby/irb/pull/732)

https://github.com/ruby/irb/commit/ef77c232cf
This commit is contained in:
tomoya ishida 2023-10-15 00:02:33 +09:00 committed by git
parent eb3be1dfef
commit 75fb3cf458

View File

@ -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