Skip to content

Commit 4649bfb

Browse files
The-CompilerMirko König
authored and
Mirko König
committed
Fix check_coverage.py tests with pytest 7.0
See pytest-dev/pytest#8247
1 parent 84df574 commit 4649bfb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/unit/scripts/test_check_coverage.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,12 @@ def test_module():
9898
# Check if coverage plugin is available
9999
res = testdir.runpytest('--version', '--version')
100100
assert res.ret == 0
101+
101102
output = res.stderr.str()
103+
if not output:
104+
# pytest >= 7.0: https://github.com/pytest-dev/pytest/pull/8247
105+
output = res.stdout.str()
106+
102107
assert 'This is pytest version' in output
103108
if 'pytest-cov' not in output:
104109
pytest.skip("cov plugin not available")

0 commit comments

Comments
 (0)