summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/irb/test_completion.rb2
1 files changed, 2 insertions, 0 deletions
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