Skip to content

Conversation

@rwstauner
Copy link
Contributor

No description provided.

out = capture_io do
assert_raises(SystemExit) { BenchmarkRunner.expand_pre_init('/nonexistent/file.rb') }
end
assert_includes out, "--with-pre-init called with non-existent file!\n"
Copy link
Contributor Author

@rwstauner rwstauner Nov 20, 2025

Choose a reason for hiding this comment

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

I don't really care if we assert these or just ignore them but it's a pet peeve of mine to have the test output broken up by uncaught warnings (especially when they are properly induced by the test code).

Copy link
Collaborator

@rafaelfranca rafaelfranca left a comment

Choose a reason for hiding this comment

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

Those tests are later deleted in my branch, that is why I didn't fix them, but I'm ok with this change.

@rafaelfranca rafaelfranca merged commit a088cc8 into main Nov 21, 2025
3 checks passed
@rafaelfranca rafaelfranca deleted the rwstauner/test-warnings branch November 21, 2025 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants