Skip to content

Commit 4eda07a

Browse files
committed
mask false positive coverage failure
1 parent ee5d243 commit 4eda07a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/installer/sources.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,10 @@ def validate_record(self, *, validate_contents: bool = True) -> None:
285285
f"In {self._zipfile.filename}, entry in RECORD file for "
286286
f"{item.filename} is invalid: {issue}"
287287
)
288-
continue
288+
289+
# coverage on Windows and python < 3.10 claims that the next line is not
290+
# reached, pragma to deal with this false positive.
291+
continue # pragma: no cover
289292

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

0 commit comments

Comments
 (0)