New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MAINT] Pytest fixture to ignore internal deprecation warnings #4043
Conversation
👋 @ymzayek Thanks for creating a PR! Until this PR is ready for review, you can include the [WIP] tag in its title, or leave it as a github draft. Please make sure it is compliant with our contributing guidelines. In particular, be sure it checks the boxes listed below.
For new features:
For bug fixes:
We will review it as quick as possible, feel free to ping us with questions if needed. |
Codecov Report
@@ Coverage Diff @@
## main #4043 +/- ##
===========================================
+ Coverage 69.06% 91.50% +22.44%
===========================================
Files 143 143
Lines 16011 16072 +61
Branches 3057 3339 +282
===========================================
+ Hits 11058 14707 +3649
+ Misses 4534 820 -3714
- Partials 419 545 +126
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 55 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
failures are unrelated, no? |
I think they are. |
Yup. I relaunched the test on main and everything passed so seems unrelated to some dependency change at least. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thx !
"The `darkness` parameter will be deprecated.*|" | ||
"`legacy_format` will default to `False`.*|" | ||
"In release 0.13, this fetcher will return a dictionary.*|" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for finishing the PR @Remi-Gau !
Just fyi I did not check that this was a thorough list of internal deprecation messages.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will quickly check but your work should allow to make it easy to suppress if there are more of those warnings
Changes proposed in this pull request:
I'm not sure if this is the best approach, but it avoids having to go through all the tests that raise the warning and adding e.g. a parameter to suppress the warning, which is a bit of a hassle and adds parameters unrelated to the particular unit tests. Since the warnings are known and tested it shouldn't have any negative side effects and could also be a way to track our deprecation in one place.