Skip to content

Commit 6d06678

Browse files
committed
Update test_invalid_coverage_source for coverage-6.2
Update test_invalid_coverage_source to make the "No data was collected" less strict, as the output has changed in coverage-6.2. This solution was suggested by Tom Callaway (@spotrh) on the linked bug. Fixes #509
1 parent f00ccf9 commit 6d06678

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_pytest_cov.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,7 @@ def test_invalid_coverage_source(testdir):
981981
'*10 passed*'
982982
])
983983
result.stderr.fnmatch_lines([
984-
'Coverage.py warning: No data was collected.*'
984+
'*No data was collected.*'
985985
])
986986
result.stdout.fnmatch_lines([
987987
'*Failed to generate report: No data to report.',

0 commit comments

Comments
 (0)