Green should capture warnings #185
henniss
started this conversation in
Enhancements
Replies: 2 comments
-
Interesting! Do you have some example tests that ought to generate such warnings? |
Beta Was this translation helpful? Give feedback.
0 replies
-
btw: In my cases warnings are not ignored. Issue can be closed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
By default, Python ignores certain warnings to avoid generating excessive noise. Unfortunately, this means that useful warnings such as DeprecationWarnings are likely to be overlooked.
A test runner is one of the most useful places for them to be visible. Indeed, the default unittest TestRunner does show them even if they would be hidden by default.
It's possible to get them by running
python -W d -m green
, but this also displays all sorts of other warnings that don't have anything to do with the code under test.IMHO Green should follow unittest's lead and enable extra warnings by default.
Beta Was this translation helpful? Give feedback.
All reactions