Skip to content

Commit

Permalink
mask false positive coverage failure
Browse files Browse the repository at this point in the history
  • Loading branch information
dimbleby committed Nov 3, 2024
1 parent ee5d243 commit 4eda07a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/installer/sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,10 @@ def validate_record(self, *, validate_contents: bool = True) -> None:
f"In {self._zipfile.filename}, entry in RECORD file for "
f"{item.filename} is invalid: {issue}"
)
continue

# coverage on Windows and python < 3.10 claims that the next line is not
# reached, pragma to deal with this false positive.
continue # pragma: no cover

if item.filename == f"{self.dist_info_dir}/RECORD":
# Assert that RECORD doesn't have size and hash.
Expand Down

0 comments on commit 4eda07a

Please sign in to comment.