Skip to content

Commit dd95918

Browse files
committed
Disable branch coverage due to upstream bug
Related: nedbat/coveragepy#605
1 parent 062cb4e commit dd95918

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

pyproject.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ ignore-words-list = "indention"
5959

6060
[tool.coverage.run]
6161
source = ["src"]
62-
branch = true
62+
# Do not use branch until bug is fixes:
63+
# https://github.com/nedbat/coveragepy/issues/605
64+
# branch = true
6365
parallel = true
6466
concurrency = ["multiprocessing", "thread"]
6567

@@ -203,7 +205,7 @@ python_files = [
203205
xfail_strict = true
204206
markers = [
205207
"eco: Tests effects on a set of 3rd party ansible repositories",
206-
"formatting_fixtures: Test that regenerates and tests formatting fixtures (requires prettier on PATH)"
208+
"formatting_fixtures: Test that regenerates and tests formatting fixtures (requires prettier on PATH)",
207209
]
208210

209211
[tool.setuptools.dynamic]

tox.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ skip_install = true
184184
deps =
185185
{[testenv]deps}
186186
commands =
187-
python -m venv .tox/venv
187+
python3 -m venv .tox/venv
188188
.tox/venv/bin/pip install -q git+https://github.com/ansible/ansible-lint@main
189189
pytest -n auto --durations=3 -m eco
190190
allowlist_externals =
@@ -229,10 +229,10 @@ usedevelop = false
229229
setenv =
230230
COVERAGE_PROCESS_START={toxinidir}/pyproject.toml
231231
commands =
232-
python -m coverage --version
232+
python3 -m coverage --version
233233
# needed by codecov github actions, also ignored result to reach report one.
234-
python -m coverage xml --fail-under=0
234+
python3 -m coverage xml --fail-under=0
235235
# just for humans running it:
236-
coverage report
236+
python3 -m coverage report
237237
deps =
238238
coverage[toml]>=7.0.5

0 commit comments

Comments
 (0)