summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2022-09-21 10:46:35 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2022-09-21 14:25:42 +0900
commitd6e84d97fee0eed62d0df20a144b11ec3c8240d4 (patch)
treed1ab02f78cf7ac13efbf3cae5a3d926c13026ab7 /test
parent1ad1f07306abc1ade6d8865fea0695771e676af3 (diff)
Fix the missing locale error
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/6411
Diffstat (limited to 'test')
-rw-r--r--test/irb/test_history.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/irb/test_history.rb b/test/irb/test_history.rb
index 206970714a..8da86ca7a8 100644
--- a/test/irb/test_history.rb
+++ b/test/irb/test_history.rb
@@ -161,6 +161,7 @@ module TestIRB
def test_history_concurrent_use_not_present
backup_home = ENV["HOME"]
backup_xdg_config_home = ENV.delete("XDG_CONFIG_HOME")
+ IRB.conf[:LC_MESSAGES] = IRB::Locale.new
IRB.conf[:SAVE_HISTORY] = 1
Dir.mktmpdir("test_irb_history_") do |tmpdir|
ENV["HOME"] = tmpdir