Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup irbrc generator cache always at teardown #968

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

tompng
Copy link
Member

@tompng tompng commented Jun 12, 2024

Fix this Error loading RC file message shown while running test_init.rb

$ rake test TEST=test/irb/test_init.rb 
Error loading RC file '/var/folders/zj/fs39x31j7s9b2lp7jydtmxgr0000gq/T/irbrc20240612-98621-vgoozc':
/Users/tomoya.ishida/github/ruby/irb/lib/irb/init.rb:400:in `load': cannot load such file -- /var/folders/zj/fs39x31j7s9b2lp7jydtmxgr0000gq/T/irbrc20240612-98621-vgoozc (LoadError)
	from /Users/tomoya.ishida/github/ruby/irb/lib/irb/init.rb:400:in `block in run_config'
	from /Users/tomoya.ishida/github/ruby/irb/lib/irb/init.rb:399:in `each'
	from /Users/tomoya.ishida/github/ruby/irb/lib/irb/init.rb:399:in `run_config'
	from /Users/tomoya.ishida/github/ruby/irb/lib/irb/init.rb:54:in `setup'
	from /Users/tomoya.ishida/github/ruby/irb/test/irb/test_init.rb:171:in `test_completor_environment_variable'
	from /Users/tomoya.ishida/.rbenv/versions/3.3.1/lib/ruby/gems/3.3.0/gems/test-unit-3.6.1/lib/test/unit/testcase.rb:871:in `run_test'
	...

Copy link
Member

@ima1zumi ima1zumi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tompng tompng merged commit 905184f into ruby:master Jun 12, 2024
29 of 30 checks passed
@tompng tompng deleted the test_irbrc_reset_fix branch June 12, 2024 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants