diff options
Diffstat (limited to 'test/irb')
-rw-r--r-- | test/irb/test_cmd.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/irb/test_cmd.rb b/test/irb/test_cmd.rb index daf6375f14..e50d036f19 100644 --- a/test/irb/test_cmd.rb +++ b/test/irb/test_cmd.rb @@ -17,12 +17,16 @@ module TestIRB Dir.chdir(@tmpdir) @home_backup = ENV["HOME"] ENV["HOME"] = @tmpdir + @default_encoding = [Encoding.default_external, Encoding.default_internal] end def teardown ENV["HOME"] = @home_backup Dir.chdir(@pwd) FileUtils.rm_rf(@tmpdir) + EnvUtil.suppress_warning { + Encoding.default_external, Encoding.default_internal = *@default_encoding + } end def test_irb_info_multiline |