Skip to content

Commit

Permalink
Rework assertion to work on old pytest.
Browse files Browse the repository at this point in the history
  • Loading branch information
ionelmc committed Jun 12, 2020
1 parent 1689c9a commit 45731f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_pytest_cov.py
Original file line number Diff line number Diff line change
Expand Up @@ -2013,7 +2013,8 @@ def test_cov_and_no_cov(testdir):
'-n', '1',
'-s',
script)
result.stdout.no_fnmatch_line('*Coverage disabled via --no-cov switch!*')
assert 'Coverage disabled via --no-cov switch!' not in result.stdout.str()
assert 'Coverage disabled via --no-cov switch!' not in result.stderr.str()
assert result.ret == 0


Expand Down

0 comments on commit 45731f3

Please sign in to comment.