From 3b147c421368825ab3ff69dd78d10d7f7db0765e Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Fri, 8 May 2020 00:15:01 +0900 Subject: test/irb/test_cmd.rb: clear IRB.@CONF on setup It caches a path to .irbrc file, which has caused random failure: ``` 1) Failure: TestIRB::ExtendCommand#test_irb_info_multiline [/home/mame/work/ruby/test/irb/test_cmd.rb:49]: Expected / Ruby\sversion: .+\n IRB\sversion:\sirb .+\n InputMethod:\sReidlineInputMethod\swith\sReline .+ and .+\n \.irbrc\spath: .+ /x to match "Ruby version: 2.8.0\n" + "IRB version: irb 1.2.3 (2020-02-15)\n" + "InputMethod: ReidlineInputMethod with Reline 0.1.4 and /tmp/test_reline_config_155659/.inputrc\n". ``` --- test/irb/test_cmd.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test') diff --git a/test/irb/test_cmd.rb b/test/irb/test_cmd.rb index e50d036f19..dd24c1e4fc 100644 --- a/test/irb/test_cmd.rb +++ b/test/irb/test_cmd.rb @@ -18,6 +18,7 @@ module TestIRB @home_backup = ENV["HOME"] ENV["HOME"] = @tmpdir @default_encoding = [Encoding.default_external, Encoding.default_internal] + IRB.instance_variable_get(:@CONF).clear end def teardown -- cgit v1.2.3