-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Exit code 1 when pytest crashes on loading plugin #3106
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
GitMate.io thinks the contributor most likely able to help you is @nicoddemus. |
Hi @genestack-solomatin thanks for writing. I agree
Perhaps we need a new error code? |
i propose we either generalize the exit code im leaning slightly torwards a new error code |
I can see this code in config.py (433 line):
So, the solusion maybe replace
What do you think about it? |
Should we return special exit status in case of other errors? Line 437 in 6213746
|
@feuillemorte I don't think that's a good approach: we should not call Not sure how easy is to change this behavior, because we let the
|
Steps to reproduce
execute
pytest -p not-installed-plugin
Observed result
Exit code is
1
Expected result
Exit code
2
or4
(https://docs.pytest.org/en/latest/usage.html#possible-exit-codes)System
platform darwin -- Python 2.7.13, pytest-3.3.2, py-1.5.2, pluggy-0.6.0
The text was updated successfully, but these errors were encountered: