Skip to content

Suppress method redefinition warnings - #1871

Open
nobu wants to merge 1 commit into
ruby:masterfrom
nobu:redefinition-warnings
Open

nobu wants to merge 1 commit into
ruby:masterfrom
nobu:redefinition-warnings

Conversation

@nobu

@nobu nobu commented Nov 2, 2026

Copy link
Copy Markdown
Member

No description provided.

Copilot AI balanced review requested due to automatic review settings November 2, 2026 02:35
@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown

Documentation preview

View the preview

Commit: befae04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues were identified in the test-only changes to method wrapper replacement and restoration.

No open issues 🎉

What changed in this PR

Suppresses method redefinition warnings in Ruby colorizer tests without changing production code.

Changes:

  • Removes existing singleton methods before installing test wrappers.
  • Removes the wrappers before restoring the original methods in ensure blocks.
File Description
test/​rdoc/​parser/​ruby_colorizer_test.rb Adds method removal before replacement and restoration in two deferred token-stream tests.

Review effort: Balanced

This branch has not been deployed

No deployments
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