Skip to content

TST Use assert_allclose to compare floats - #33225

Closed
jeremiedbb wants to merge 2 commits into
scikit-learn:mainfrom
jeremiedbb:fix-test-get-response-values
Closed

jeremiedbb wants to merge 2 commits into
scikit-learn:mainfrom
jeremiedbb:fix-test-get-response-values

Conversation

@jeremiedbb

@jeremiedbb jeremiedbb commented Feb 6, 2026 •

Copy link
Copy Markdown
Member

The test test_estimator_get_response_values was modified recently (e.g. here) and now fails sometimes because of numerical precision. assert_allclose should be used to compare floats

@jeremiedbb jeremiedbb added the Quick Review For PRs that are quick to review label Feb 6, 2026
@github-actions github-actions Bot added module:utils CI:Linter failure The linter CI is failing on this PR labels Feb 6, 2026
@github-actions github-actions Bot removed the CI:Linter failure The linter CI is failing on this PR label Feb 6, 2026
@lesteve

lesteve commented Feb 6, 2026

Copy link
Copy Markdown
Member

Thanks for the PR, see ongoing #33221 though 😉

@jeremiedbb

Copy link
Copy Markdown
Member Author

closing in favor of #33221

@jeremiedbb jeremiedbb closed this Feb 6, 2026
@jeremiedbb
jeremiedbb deleted the fix-test-get-response-values branch September 3, 2026 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants