python-apache-libcloud fails its test suite (breaks fdroidserver)

  • Done
  • quality assurance status badge
Details
One participant
  • Maxim Cournoyer
Owner
unassigned
Submitted by
Maxim Cournoyer
Severity
normal

Debbugs page

M
M
Maxim Cournoyer wrote on 10 Sep 2019 19:36
python-apache-libcloud fails its test suite
(name . bug-guix)(address . bug-guix@gnu.org)
871rwnsgn7.fsf@gmail.com
This is happening on master.

The tests results are reported as:

====== 14 failed, 9148 passed, 24 skipped, 532 warnings in 173.14 seconds ======

And here's a sample of a failure output:

Toggle snippet (47 lines)
self = <PreparedRequest [POST]>, url = 'https://ecs.%s.amazonaws.com/'
params = OrderedDict()

def prepare_url(self, url, params):
"""Prepares the given HTTP URL."""
#: Accept objects that have string representations.
#: We're unable to blindly call unicode/str functions
#: as this will include the bytestring indicator (b'')
#: on python 3.x.
#: https://github.com/requests/requests/pull/2238
if isinstance(url, bytes):
url = url.decode('utf8')
else:
url = unicode(url) if is_py2 else str(url)
# Remove leading whitespaces from url
url = url.lstrip()
# Don't do any URL preparation for non-HTTP schemes like `mailto`,
# `data` etc to work around exceptions from `url_parse`, which
# handles RFC 3986 only.
if ':' in url and not url.lower().startswith('http'):
self.url = url
return
# Support for unicode domain names and paths.
try:
scheme, auth, host, port, path, query, fragment = parse_url(url)
except LocationParseError as e:
> raise InvalidURL(*e.args)
E requests.exceptions.InvalidURL: Failed to parse: https://ecs.%s.amazonaws.com/

/gnu/store/6bqv37089mz5a227c008smpl6vks3cf8-python-requests-2.22.0/lib/python3.7/site-packages/requests/models.py:381: InvalidURL
______________ ElasticContainerDriverTestCase.test_stop_container ______________

self = <PreparedRequest [POST]>, url = 'https://ecs.%s.amazonaws.com/'
params = OrderedDict()

def prepare_url(self, url, params):
"""Prepares the given HTTP URL."""
#: Accept objects that have string representations.
#: We're unable to blindly call unicode/str functions
#: as this will include the bytestring indicator (b'')
#: on python 3.x.
#: https://github.com/requests/requests/pull/2238

Perhaps an upgrade of python-requests could be at cause. Needs
investigation.

Maxim
M
M
Maxim Cournoyer wrote on 2 Mar 2020 11:17
control message for bug #37378
(address . control@debbugs.gnu.org)
87d09u5zxa.fsf@gmail.com
retitle 37378 python-apache-libcloud fails its test suite (breaks fdroidserver)
quit
M
M
Maxim Cournoyer wrote on 13 Jan 2021 08:02
(address . control@debbugs.gnu.org)
87eeion7ue.fsf@gmail.com
tags 37378 fixed
close 37378
quit
?
Your comment

This issue is archived.

To comment on this conversation send an email to 37378@patchwise.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 37378
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch