Skip to content

Commit

Permalink
Save $VERBOSE properly
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Dec 12, 2023
1 parent 73b43ff commit 305f66b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/irb/test_history.rb
Expand Up @@ -149,10 +149,9 @@ def test_history_concurrent_use_not_present
end

def test_history_different_encodings
verbose_bak = nil
backup_default_external = Encoding.default_external
IRB.conf[:SAVE_HISTORY] = 2
$VERBOSE = nil
verbose_bak, $VERBOSE = $VERBOSE, nil
Encoding.default_external = Encoding::US_ASCII
locale = IRB::Locale.new("C")
assert_history(<<~EXPECTED_HISTORY.encode(Encoding::US_ASCII), <<~INITIAL_HISTORY.encode(Encoding::UTF_8), <<~INPUT, locale: locale)
Expand Down

0 comments on commit 305f66b

Please sign in to comment.