[Python-modules-team] Bug#943510: python-urllib3: FTBFS with test failures

Andreas Beckmann anbe at debian.org
Fri Oct 25 17:31:14 BST 2019


Source: python-urllib3
Version: 1.25.6-1
Severity: serious
Tags: ftbfs
Justification: fails to build from source

Hi,

python-urllib3/experimental FTBFS with some failing tests:
https://buildd.debian.org/status/fetch.php?pkg=python-urllib3&arch=all&ver=1.25.6-1&stamp=1570856398&raw=0

   dh_auto_test -i -O--buildsystem=pybuild
I: pybuild base:217: cd /<<PKGBUILDDIR>>/.pybuild/cpython2_2.7_urllib3/build; python2.7 -m pytest --ignore=test/appengine --ignore=test/with_dummyserver --ignore=test/test_connectionpool.py --ignore=test/test_ssl.py --ignore=test/contrib/test_pyopenssl.py --ignore=test/contrib/test_securetransport.py --ignore=test/contrib/test_socks.py -k-test_recent_date
============================= test session starts ==============================
platform linux2 -- Python 2.7.17rc1, pytest-4.6.5, py-1.8.0, pluggy-0.12.0
rootdir: /<<PKGBUILDDIR>>, inifile: setup.cfg
collected 476 items / 1 deselected / 475 selected

test/test_collections.py .....................................           [  7%]
test/test_compatibility.py ...                                           [  8%]
test/test_connection.py ....                                             [  9%]
test/test_exceptions.py .............                                    [ 12%]
test/test_fields.py ...............                                      [ 15%]
test/test_filepost.py ...........                                        [ 17%]
test/test_no_ssl.py ..                                                   [ 17%]
test/test_poolmanager.py .........................                       [ 23%]
test/test_proxymanager.py ...                                            [ 23%]
test/test_queue_monkeypatch.py .                                         [ 24%]
test/test_response.py ..................sss............................. [ 34%]
..............                                                           [ 37%]
test/test_retry.py .....................................                 [ 45%]
test/test_util.py ..s................................................... [ 56%]
........................................................................ [ 71%]
F......................................................F..s...s......... [ 86%]
...............................................                          [ 96%]
test/test_wait.py .............                                          [ 99%]
test/contrib/test_pyopenssl_dependencies.py ss                           [100%]

=================================== FAILURES ===================================
_ TestUtil.test_parse_url[http://K\xf6nigsg\xe4\xdfchen.de/stra\xdfe-expected_url27] _

self = <test.test_util.TestUtil object at 0x7f09fd3cc5d0>
url = 'http://Königsgäßchen.de/straße'
expected_url = Url(scheme='http', auth=None, host='xn--knigsgchen-b4a3dun.de', port=None, path='/stra%C3%9Fe', query=None, fragment=None)

    @pytest.mark.parametrize(
        "url, expected_url",
        chain(parse_url_host_map, non_round_tripping_parse_url_host_map),
    )
    def test_parse_url(self, url, expected_url):
>       returned_url = parse_url(url)

test/test_util.py:310: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
urllib3/util/url.py:401: in parse_url
    return six.raise_from(LocationParseError(source_url), None)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

value = LocationParseError(u'Failed to parse: http://K\xf6nigsg\xe4\xdfchen.de/stra\xdfe',)
from_value = None

    def raise_from(value, from_value):
>       raise value
E       LocationParseError: Failed to parse: http://K\xf6nigsg\xe4\xdfchen.de/stra\xdfe

/usr/lib/python2.7/dist-packages/six.py:737: LocationParseError
_ TestUtil.test_url_vulnerabilities[http://\u30d2:\u30ad@\u30d2.abc.\u30cb/\u30d2?\u30ad#\u30ef-expected_url5] _

self = <test.test_util.TestUtil object at 0x7f09fd1fe390>
url = 'http://ヒ:キ@ヒ.abc.ニ/ヒ?キ#ワ'
expected_url = Url(scheme=u'http', auth=u'%E3%83%92:%E3%82%AD', host=u'xn--pdk.abc.xn--idk', port=None, path=u'/%E3%83%92', query=u'%E3%82%AD', fragment=u'%E3%83%AF')

    @pytest.mark.parametrize("url, expected_url", url_vulnerabilities)
    def test_url_vulnerabilities(self, url, expected_url):
        if expected_url is False:
            with pytest.raises(LocationParseError):
                parse_url(url)
        else:
>           assert parse_url(url) == expected_url

test/test_util.py:436: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
urllib3/util/url.py:401: in parse_url
    return six.raise_from(LocationParseError(source_url), None)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

value = LocationParseError(u'Failed to parse: http://\u30d2:\u30ad@\u30d2.abc.\u30cb/\u30d2?\u30ad#\u30ef',)
from_value = None

    def raise_from(value, from_value):
>       raise value
E       LocationParseError: Failed to parse: http://\u30d2:\u30ad@\u30d2.abc.\u30cb/\u30d2?\u30ad#\u30ef

/usr/lib/python2.7/dist-packages/six.py:737: LocationParseError
======== 2 failed, 465 passed, 8 skipped, 1 deselected in 10.96 seconds ========
E: pybuild pybuild:341: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython2_2.7_urllib3/build; python2.7 -m pytest --ignore=test/appengine --ignore=test/with_dummyserver --ignore=test/test_connectionpool.py --ignore=test/test_ssl.py --ignore=test/contrib/test_pyopenssl.py --ignore=test/contrib/test_securetransport.py --ignore=test/contrib/test_socks.py -k-test_recent_date
dh_auto_test: pybuild --test -i python{version} -p 2.7 returned exit code 13


Cheers,

Andreas


More information about the Python-modules-team mailing list