Skip to content

Commit

Permalink
Ignore coverage for file urls.
Browse files Browse the repository at this point in the history
(cherry picked from commit 9bc2e87)
  • Loading branch information
jaraco authored and rickprice committed Nov 7, 2024
1 parent 57a1fcb commit 9c8c018
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setuptools/package_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,7 @@ def _download_vcs(self, url, spec_filename):

def _download_other(self, url, filename):
scheme = urllib.parse.urlsplit(url).scheme
if scheme == 'file':
if scheme == 'file': # pragma: no cover
return urllib.request.url2pathname(urllib.parse.urlparse(url).path)
# raise error if not allowed
self.url_ok(url, True)
Expand Down

0 comments on commit 9c8c018

Please sign in to comment.