-
Notifications
You must be signed in to change notification settings - Fork 200
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
pytest follow-up #3674
pytest follow-up #3674
Conversation
3b3f2a7
to
6356334
Compare
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.
Do you know if there's a command-line switch for re-enabling the deprecation warnings? Might be good to check these periodically.
Aha, I just did the same last night and fixed most of the warnings with 27 warnings. OK to merge this though, I will add the additional corrections in another PR. I also opened #3672 with the list of the three remaining problems. I tried fixing them but it was not trivial, so preferred not to do it in a big one. I also uncovered #3673 this way which is pretty serious. The caching is broken. At least the configuration and methods to control what is cached, that is |
@greschd Note that sometimes it will be expected that there are warnings, for example coming from our own deprecation warnings. We still want to test those paths so we would not want to have those warnings fail the tests |
Yeah, I meant "run and manually inspect" with warnings enabled, certainly shouldn't fail for that. Could be on the list of tools the dependency manager can use to detect future compatibily issues. |
Ah - damn! Anyhow, merged now. |
starts to address #3659
__init__
constructorNote: this could be made more flexible (e.g. narrowing down filters), since such warnings can sometimes be useful, e.g. if we are using a deprecated API of the package (say, django). Most of the time, it is the external package that is using some deprecated API.
Note: These are the slowest tests, all of which would be good to speed up