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

Fix test runner exit bug #728

Merged
merged 2 commits into from
Oct 12, 2023
Merged

Conversation

tompng
Copy link
Member

@tompng tompng commented Oct 12, 2023

make test-all TESTS=irb was failing with ```irb_exit': private method `exit' called for nil (NoMethodError)`` (fixed in #727)

Removes useless test setup and teardown that sets IRB.conf[:MAIN_CONTEXT] = nil.
Remove safe navigation operator of irb_context&.exit because it won't be nil.
Avoid test_irb.rb overriding main object's exit method because it can be a potential bug.

@st0012 st0012 merged commit f204829 into ruby:master Oct 12, 2023
24 checks passed
matzbot pushed a commit to ruby/ruby that referenced this pull request Oct 12, 2023
(ruby/irb#728)

* Remove useless test setup and teardown that sets MAIN_CONTEXT to nil

* Avoid adding command methods to main object in test

ruby/irb@f204829a08
@tompng tompng deleted the fix_test_runner_exit_bug branch October 12, 2023 15:00
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