Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Coverage: add more exclusions#7666

Merged
radarhere merged 5 commits into
python-pillow:mainfrom
hugovk:coverage-exclude_also
Jan 1, 2024
Merged

Coverage: add more exclusions#7666
radarhere merged 5 commits into
python-pillow:mainfrom
hugovk:coverage-exclude_also

Conversation

@hugovk

@hugovk hugovk commented Dec 31, 2023

Copy link
Copy Markdown
Member

Changes proposed in this pull request:

  • With recent Coverage.py, we can use exclude_also instead of exclude_lines which requires re-enabling the standard pragma
  • create_lut() was a helper method not run anywhere, should we delete it instead?
  • class TypeGuard is compatibility code being introduced in Add type hints to _util #7642. We have a # type: ignore[no-redef] on it, and I don't think we need to cover it in tests either.

@hugovk hugovk added the Testing label Dec 31, 2023
Comment thread .coveragerc Outdated
@nulano

nulano commented Dec 31, 2023

Copy link
Copy Markdown
Contributor

create_lut() was a helper method not run anywhere, should we delete it instead?

+1 for deleting it, it's easy to temporarily recreate if necessary.

@radarhere radarhere merged commit d6fd4c9 into python-pillow:main Jan 1, 2024
@hugovk hugovk deleted the coverage-exclude_also branch January 1, 2024 05:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants