Skip to content

Commit

Permalink
Restore encoding in InputCompletor test (#732)
Browse files Browse the repository at this point in the history
  • Loading branch information
tompng authored Oct 14, 2023
1 parent de79375 commit ef77c23
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/irb/test_completion.rb
Original file line number Diff line number Diff line change
Expand Up @@ -268,12 +268,14 @@ def instance_variables; end

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

Expand Down

0 comments on commit ef77c23

Please sign in to comment.