Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Fatal error doesn't lead to a non-zero exit code #25

Open
kasium opened this issue Sep 7, 2021 · 0 comments
Open

Fatal error doesn't lead to a non-zero exit code #25

kasium opened this issue Sep 7, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@kasium
Copy link

kasium commented Sep 7, 2021

Describe the bug
If the fatal error cannot-enumerate-pytest-fixtures is raised, pylint exists with a 0.

To Reproduce
See #24 for all details.

Also, use the following toml

[tool.pylint.master]
load-plugins = [
    "pylint_pytest"
]

[tool.pylint."messages control"]
disable = ["all"]
enable = ["cannot-enumerate-pytest-fixtures"]

pylint output

(venv) ~/git/empty_test # pylint x.py test_a.py
************* Module test_a
test_a.py:1:0: F6401: pylint-pytest plugin cannot enumerate and collect pytest fixtures. Please run `pytest --fixtures --collect-only path/to/current/module.py` and resolve any potential syntax error or package dependency issues (cannot-enumerate-pytest-fixtures)
(venv) ~/git/empty_test # echo $?
0

Expected behavior
Pylint should exit with a 1.

@kasium kasium added the bug Something isn't working label Sep 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant