Skip to content

Commit d019252

Browse files
committed
mask false positive coverage failure
1 parent 87f0df5 commit d019252

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/installer/sources.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,10 @@ def validate_record(self, *, validate_contents: bool = True) -> None:
279279
f"In {self._zipfile.filename}, entry in RECORD file for "
280280
f"{item.filename} is invalid: {issue}"
281281
)
282-
continue
282+
283+
# coverage on Windows and python < 3.10 claims that the next line is not
284+
# reached, pragma to deal with this false positive.
285+
continue # pragma: no cover
283286

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

0 commit comments

Comments
 (0)