From 905184ff9ce2680a31164349be561438217508d5 Mon Sep 17 00:00:00 2001 From: tomoya ishida <tomoyapenguin@gmail.com> Date: Wed, 12 Jun 2024 16:47:58 +0900 Subject: [PATCH] Cleanup irbrc generator cache always at teardown (#968) --- 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 3207c2898..c423fa112 100644 --- a/test/irb/test_init.rb +++ b/test/irb/test_init.rb @@ -274,7 +274,6 @@ def setup @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 @@ def teardown 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