Skip to content

Commit 45731f3

Browse files
committed
Rework assertion to work on old pytest.
1 parent 1689c9a commit 45731f3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_pytest_cov.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2013,7 +2013,8 @@ def test_cov_and_no_cov(testdir):
20132013
'-n', '1',
20142014
'-s',
20152015
script)
2016-
result.stdout.no_fnmatch_line('*Coverage disabled via --no-cov switch!*')
2016+
assert 'Coverage disabled via --no-cov switch!' not in result.stdout.str()
2017+
assert 'Coverage disabled via --no-cov switch!' not in result.stderr.str()
20172018
assert result.ret == 0
20182019

20192020

0 commit comments

Comments
 (0)