Skip to content

100% Code Coverage#792

Merged
bbayles merged 8 commits intomore-itertools:masterfrom
haukex:coverage100
Jan 9, 2024
Merged

100% Code Coverage#792
bbayles merged 8 commits intomore-itertools:masterfrom
haukex:coverage100

Conversation

@haukex
Copy link
Copy Markdown
Contributor

@haukex haukex commented Jan 7, 2024

This PR increases the code coverage to 100% (and ups the required code coverage accordingly), tested on Python 3.8 to 3.12 on Linux. Note this includes a few actual fixes:

  • 6d60ae2: Corrects NthPermutationTests (some tests accidentally referred to nth_combination instead)
  • a1c7e66: Removes unreachable code in nth_permutation

I chose to simply suppress coverage on a few bits of version-dependent code. As a side note, there is an alternative that I use in my igbpyutils project: Generated .coveragerc files with tags such as # cover-req-ge3.10 and # cover-req-lt3.10 for each Python version. This allows me to run Python version-specific coverage checks in that project.

@bbayles bbayles merged commit 757ab5d into more-itertools:master Jan 9, 2024
@bbayles
Copy link
Copy Markdown
Collaborator

bbayles commented Jan 9, 2024

I took the additional test and .gitignore changes, but left the pragma statements and fail-under change. Thanks for this!

@haukex haukex deleted the coverage100 branch January 10, 2024 08:59
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 this pull request may close these issues.

2 participants