Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Prev Previous commit
Ignore coverage for file urls.
  • Loading branch information
jaraco committed Apr 29, 2024
commit 9bc2e87fc74e726927d208438385956591c96aa5
2 changes: 1 addition & 1 deletion setuptools/package_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,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