-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
tests fail when git python module isn't installed #5486
Comments
We added git python to the tests requirements when we added primer, but they are indeed used in I'd hate to do that though, most user do not need testutils and only use pylint as a linter a not as a lib that they extend. I think we could create a separate package |
A separate package is a lot of work even if we automate most of it. I would suggest pip install pylint[test-lib] https://setuptools.pypa.io/en/latest/userguide/dependency_management.html#optional-dependencies |
|
Bug description
Run pytest without having the git python module installed, they will fail on
import git
:https://github.com/PyCQA/pylint/blob/5e9d20dc32768e873ab84bc4ed0b489fdda40672/pylint/testutils/primer.py#L1-L10
cc @Pierre-Sassoulas
Configuration
No response
Command used
Pylint output
Expected behavior
Tests which require git python module are skipped on systems without this module.
Pylint version
OS / Environment
No response
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: