diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-04-06 22:33:41 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-04-06 22:33:41 +0100 |
commit | e68d405c5d712af4387159df07e226217bdda049 (patch) | |
tree | 009ab0f3d427f0813e62930d71802cb054c07e30 /app-admin/ansible-lint/files | |
parent | 401101f9c8077911929d3f2b60a37098460a5d89 (diff) |
gentoo resync : 06.04.2022
Diffstat (limited to 'app-admin/ansible-lint/files')
-rw-r--r-- | app-admin/ansible-lint/files/ansible-lint-6.0.2_test-module-check.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/app-admin/ansible-lint/files/ansible-lint-6.0.2_test-module-check.patch b/app-admin/ansible-lint/files/ansible-lint-6.0.2_test-module-check.patch new file mode 100644 index 000000000000..4288bb897c1e --- /dev/null +++ b/app-admin/ansible-lint/files/ansible-lint-6.0.2_test-module-check.patch @@ -0,0 +1,23 @@ +Let the package managers handle dependencies, m'kay? + +--- a/conftest.py ++++ b/conftest.py +@@ -3,18 +3,6 @@ + import os + import sys + +-# checking if user is running pytest without installing test dependencies: +-missing = [] +-for module in ["ansible", "black", "flake8", "flaky", "mypy", "pylint", "pytest_cov"]: +- if not importlib.util.find_spec(module): +- missing.append(module) +-if missing: +- print( +- f"FATAL: Missing modules: {', '.join(missing)} -- probably you missed installing test requirements with: pip install -e '.[test]'", +- file=sys.stderr, +- ) +- sys.exit(1) +- + + os.environ["NO_COLOR"] = "1" + pytest_plugins = ["ansiblelint.testing.fixtures"] |