Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / docformatter / test-path.patch
blob2959d84704e848ec0a0db6538479f998836d41f3
1 diff --git a/tests/conftest.py b/tests/conftest.py
2 index 762d246..7f86763 100644
3 --- a/tests/conftest.py
4 +++ b/tests/conftest.py
5 @@ -101,21 +101,9 @@ def run_docformatter(arguments, temporary_file):
7 Return subprocess object.
8 """
9 - if "DOCFORMATTER_COVERAGE" in os.environ and int(
10 - os.environ["DOCFORMATTER_COVERAGE"]
11 - ):
12 - DOCFORMATTER_COMMAND = [
13 - "coverage",
14 - "run",
15 - "--branch",
16 - "--parallel",
17 - "--omit=*/site-packages/*",
18 - os.environ["VIRTUAL_ENV"] + "/bin/docformatter",
19 - ]
20 - else:
21 - DOCFORMATTER_COMMAND = [
22 - os.environ["VIRTUAL_ENV"] + "/bin/docformatter",
23 - ] # pragma: no cover
24 + DOCFORMATTER_COMMAND = [
25 + "@docformatter@"
26 + ]
28 if "-" not in arguments:
29 arguments.append(temporary_file)