Skip to content

Conversation

@nobu
Copy link
Member

@nobu nobu commented Nov 10, 2025

test-unit depends on power_assert that the recent versions require ruby 3.1 or later. While test-unit rescues syntax error at loading power_assert for old ruby versions, warnings for experimental features are not suppressed, and assert_separately fails because stderr is not empty, by default. Since adding required_ruby_version to power_assert causes the installation with old rubygems to fail, we just ignore warnings for experimental features totally.

test-unit depends on power_assert that the recent versions require
ruby 3.1 or later.  While test-unit rescues syntax error at loading
power_assert for old ruby versions, warnings for experimental features
are not suppressed, and `assert_separately` fails because stderr is
not empty, by default.  Since adding `required_ruby_version` to
power_assert causes the installation with old rubygems to fail, we
just ignore warnings for experimental features totally.
@nobu nobu merged commit 110a54f into ruby:master Nov 10, 2025
@nobu nobu deleted the ignore-experimental-warnings branch November 10, 2025 07:02
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.

2 participants