-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
re-enable all warnings by default #1191
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
Comments
Should we do this for 3.0 as it's backwards-incompatible but probably relatively straightforward? Or do we just recommend people to use |
i think we discussed having it in pytest-warnings for now - @fschulze might recall more details |
For 3.0 we should recommend pytest-warnings, which will eventually be integrated into pytest. |
This task is actually for enabling general warnings by default, I think we should do it in 3.0 as it should be simple enough. I will get to it this week. |
Just to add more information, here's the full disclosure on how warnings are now handled. The interesting bit here is this:
|
For 3.0 we decided to only show the pytest internal warnings by default. We hadn't decided on how to handle DeprecationWarnings yet, neither in tests, nor in pytest itself. That's why we wanted to recommend pytest-warnings. If you just enable them like unittest does, then tests that capture output are likely to break. For 3.0 I wouldn't change anything regarding the warnings module. |
Believe me, just by enabling to show pytest-warnings by default some test suites will break already (some tests at work which used But I agree that this could be done in 3.1, where we could do all warnings changes we planned:
Moving this (as well as the others above) to milestone 3.1. |
Fixed by #2072. |
From @hunse in #1190
The text was updated successfully, but these errors were encountered: