From 0cfb7796928f16f967fcf7b4d0a49fab6774001f Mon Sep 17 00:00:00 2001 From: Stan Lo Date: Tue, 29 Aug 2023 13:48:29 +0100 Subject: [PATCH] [ruby/irb] Fix test warnings (https://github.com/ruby/irb/pull/698) * Encoding should be saved before creating Irb objects * Fix unused local warning https://github.com/ruby/irb/commit/036ec31034 --- test/irb/test_context.rb | 2 +- test/irb/test_irb.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/irb/test_context.rb b/test/irb/test_context.rb index dae0f8f6e4..f59a23a99d 100644 --- a/test/irb/test_context.rb +++ b/test/irb/test_context.rb @@ -93,7 +93,7 @@ module TestIRB def test_prompt_n_deprecation irb = IRB::Irb.new(IRB::WorkSpace.new(Object.new)) - out, err = capture_output do + _, err = capture_output do irb.context.prompt_n = "foo" irb.context.prompt_n end diff --git a/test/irb/test_irb.rb b/test/irb/test_irb.rb index c685912093..08fe41f5e7 100644 --- a/test/irb/test_irb.rb +++ b/test/irb/test_irb.rb @@ -94,8 +94,8 @@ module TestIRB end def setup - @irb = build_irb save_encodings + @irb = build_irb end def teardown