Skip to content

Conversation

@nobu
Copy link
Member

@nobu nobu commented Nov 25, 2025

test-unit always tries to load power_assert, but recent power_assert uses syntax available since ruby 3.1.
Even when test-unit squashes SyntaxError, warnings for experimental syntax or unsupported syntax are emitted before rescued, and can cause problems sometimes.

test-unit always tries to load power_assert, but recent power_assert
uses syntax available since ruby 3.1.  Even when test-unit squashes
SyntaxError, warnings for experimental syntax or unsupported syntax
are emitted before rescued, and can cause problems sometimes.
@kou kou merged commit 692c7ae into master Nov 25, 2025
72 checks passed
@kou
Copy link
Member

kou commented Nov 25, 2025

Should we release a new version with this?

@nobu
Copy link
Member Author

nobu commented Nov 25, 2025

Should we release a new version with this?

Yes, ruby/cgi fails because of these warnings: https://github.com/ruby/cgi/actions

@nobu nobu deleted the no-experimental-warnings branch November 25, 2025 07:06
@kou
Copy link
Member

kou commented Nov 25, 2025

Released.

@nobu
Copy link
Member Author

nobu commented Nov 25, 2025

Thanks!

nobu added a commit that referenced this pull request Nov 25, 2025
Fix up #335.

`power_assert` is required in util/backtracefilter.rb too, that is
required from assertions.rb, and raises `SyntaxError` twice.  As the
latter file always requires the former file, the second `require`
doesn't make sense.
kou pushed a commit that referenced this pull request Nov 25, 2025
Fix up #335.

`power_assert` is required in util/backtracefilter.rb too, that is
required from assertions.rb, and raises `SyntaxError` twice.
As the latter file always requires the former file, the second `require`
doesn't make sense.
nobu added a commit to nobu/timeout that referenced this pull request Nov 26, 2025
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.

3 participants