Skip to content

test suite fails with coverage 5.4 #452

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Chedi opened this issue Jan 29, 2021 · 0 comments
Closed

test suite fails with coverage 5.4 #452

Chedi opened this issue Jan 29, 2021 · 0 comments

Comments

@Chedi
Copy link
Contributor

Chedi commented Jan 29, 2021

Summary

The new version of coverage (5.4) has implemented a new behavior where :

The text report produced by coverage report now always outputs a TOTAL line, even if only one Python file is reported. This makes regex parsing of the output easier. Thanks, Judson Neer. This had been requested a number of times (issue 1086, issue 922, issue 732).

https://github.com/nedbat/coveragepy/releases/tag/coverage-5.4

this causes some test expecting empty lines at the end of the coverage report to fail

Expected vs actual result

expected: passing tests
results: failing tests with the following assert

assert all(not line.startswith('TOTAL ') for line in result.stdout.lines[-4:])

Reproducer

Versions

pytest-cov: 2.11.1
coverage: 5.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant