Skip to content

TST fix all warnings in tests of sklearn.linear_model - #35516

Merged
lucyleeow merged 6 commits into
scikit-learn:mainfrom
lorentzenchr:test_warnings_linear_model
Nov 27, 2026
Merged

lucyleeow merged 6 commits into
scikit-learn:mainfrom
lorentzenchr:test_warnings_linear_model

Conversation

@lorentzenchr

Copy link
Copy Markdown
Member

Reference Issues/PRs

Toward #5685

What does this implement/fix? Explain your changes.

This PR fixes all warnings in the linear_model module, i.e.

pytest -W error -W "ignore::sklearn.exceptions.SkipTestWarning"

now passes.

AI usage disclosure

None

Any other comments?

@OmarManzoor OmarManzoor 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.

LGTM. Thank you @lorentzenchr

@OmarManzoor

Copy link
Copy Markdown
Contributor

@lorentzenchr Could you kindly verify that the codecov error is not significant? I couldn't really verify.

@lorentzenchr

Copy link
Copy Markdown
Member Author

Could you kindly verify that the codecov error is not significant?

Codecov can be a mystery. All that changed is RuntimeWarning -> ConvergenceWarning. The tests cover the same as before and codecov only triggers because the code changed? Maybe those 2 line were never tested before.
What I can assure is that this PR does not worsen anything.

@lucyleeow lucyleeow left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

@lucyleeow

Copy link
Copy Markdown
Member

Checked its actually linear_model this time 😛

@lucyleeow
lucyleeow merged commit e68c64d into scikit-learn:main Nov 27, 2026
38 of 39 checks passed
@lorentzenchr
lorentzenchr deleted the test_warnings_linear_model branch November 27, 2026 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants