diff options
author | Florian Bruhin <me@the-compiler.org> | 2021-07-06 10:20:43 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2021-07-06 10:20:43 +0200 |
commit | 4fe3f8c471bd90f81017dce15e6cbd2f61cdce39 (patch) | |
tree | d7810c0a951e581039fbfb8ca814fa8aefa133e8 /tests | |
parent | 7c3771f0b1f426cbf465268b57f2a33ed9b9bbe3 (diff) | |
download | qutebrowser-4fe3f8c471bd90f81017dce15e6cbd2f61cdce39.tar.gz qutebrowser-4fe3f8c471bd90f81017dce15e6cbd2f61cdce39.zip |
Fix check_coverage.py tests with pytest 7.0
See https://github.com/pytest-dev/pytest/pull/8247
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/scripts/test_check_coverage.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/unit/scripts/test_check_coverage.py b/tests/unit/scripts/test_check_coverage.py index efd35ce82..abb0969b6 100644 --- a/tests/unit/scripts/test_check_coverage.py +++ b/tests/unit/scripts/test_check_coverage.py @@ -98,7 +98,12 @@ def covtest(testdir, monkeypatch): # Check if coverage plugin is available res = testdir.runpytest('--version', '--version') assert res.ret == 0 + output = res.stderr.str() + if not output: + # pytest >= 7.0: https://github.com/pytest-dev/pytest/pull/8247 + output = res.stdout.str() + assert 'This is pytest version' in output if 'pytest-cov' not in output: pytest.skip("cov plugin not available") |