aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStan Lo <stan001212@gmail.com>2023-08-29 13:48:29 +0100
committergit <svn-admin@ruby-lang.org>2023-08-29 12:48:33 +0000
commit0cfb7796928f16f967fcf7b4d0a49fab6774001f (patch)
tree76ca067d60009250a8f1f9610870e85febb6214c
parentf0b43597ffbef0a43ca3459d8807bdc00ba4ec59 (diff)
downloadruby-0cfb7796928f16f967fcf7b4d0a49fab6774001f.tar.gz
[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
-rw-r--r--test/irb/test_context.rb2
-rw-r--r--test/irb/test_irb.rb2
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