From c56d0adfa67667189635f9053ad0a36ae1fa62a4 Mon Sep 17 00:00:00 2001 From: tomoya ishida Date: Wed, 12 Jun 2024 16:47:58 +0900 Subject: [PATCH] [ruby/irb] Cleanup irbrc generator cache always at teardown (https://github.com/ruby/irb/pull/968) https://github.com/ruby/irb/commit/905184ff9c --- test/irb/test_init.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/irb/test_init.rb b/test/irb/test_init.rb index 3207c2898b..c423fa112e 100644 --- a/test/irb/test_init.rb +++ b/test/irb/test_init.rb @@ -274,7 +274,6 @@ module TestIRB @original_irbrc = ENV["IRBRC"] # To prevent the test from using the user's .irbrc file ENV["HOME"] = @home = Dir.mktmpdir - IRB.instance_variable_set(:@existing_rc_name_generators, nil) super end @@ -284,6 +283,7 @@ module TestIRB ENV["HOME"] = @original_home File.unlink(@irbrc) Dir.rmdir(@home) + IRB.instance_variable_set(:@existing_rc_name_generators, nil) end def test_irb_name_converts_non_string_values_to_string