-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Warnings do not become errors with --strict
#1381
Comments
that is indeed a documentation misstake the original warnings where warnings about unknown markers, there is need for some discussion on how to solve this propperly |
FWIW, I would like to see an option that would turn warnings as described by the OP into errors and cause tests to fail. Whether that is Thanks. |
@rsyring |
@nicoddemus running with
|
I guess this is resolved by now? |
Yeah I think the underlying issue is, thanks for the ping @blueyed |
In Pytest 2.8.7, the documentation for strict reads:
However, this doesn't appear to be the case. Running this file through
py.test
raises a warning asTestFoo
has a custom__init__
:This doesn't cause
py.test
to exit non-zero, which is fine:However, running with
--strict
also exits zero, despite the documentation snippet I quoted above:Am I missing something here? Shouldn't this return non-zero?
The text was updated successfully, but these errors were encountered: