Skip to content

Commit 2b8a910

Browse files
committed
🚑 Suppress insufficient coverage pytest warning
This is emitted by `pytest-cov` [[1]] and is turned into an error by the default `-Werror` passed to Python, not the `filterwarnings` setting within the `pytest`. The patch selectively suppresses the warning so there's nothing to turn into an error in the first place. Insufficient coverage still marks the test session as failed as it's supposed to. [1]: pytest-dev/pytest-cov#675
1 parent 4b0ad90 commit 2b8a910

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ commands =
2323
{[python-cli-options]byte-errors} \
2424
{[python-cli-options]max-isolation} \
2525
{[python-cli-options]warnings-to-errors} \
26+
-W 'ignore:Coverage failure::pytest_cov.plugin' \
2627
-m pytest \
2728
{tty:--color=yes} \
2829
{posargs:--cov-report=html:{envtmpdir}{/}htmlcov{/}}

0 commit comments

Comments
 (0)