* Encoding should be saved before creating Irb objects

* Fix unused local warning

https://github.com/ruby/irb/commit/036ec31034
This commit is contained in:
Stan Lo 2023-08-29 13:48:29 +01:00 committed by git
parent f0b43597ff
commit 0cfb779692
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -94,8 +94,8 @@ module TestIRB
end
def setup
@irb = build_irb
save_encodings
@irb = build_irb
end
def teardown