Package: src:python-w3lib Version: 1.22.0-2 Severity: serious Tags: sid bullseye
seen on all architectures, triggered by the python3-defaults upload. https://ci.debian.net/data/autopkgtest/testing/amd64/p/python-w3lib/10824843/log.gz === python3.9 === ============================= test session starts ============================== platform linux -- Python 3.9.2, pytest-6.0.2, py-1.10.0, pluggy-0.13.0 rootdir: /tmp/autopkgtest-lxc.or2rkj_p/downtmp/autopkgtest_tmp collected 146 items tests/test_encoding.py ................... [ 13%] tests/test_form.py ... [ 15%] tests/test_html.py ..................................................... [ 51%] [ 51%] tests/test_http.py ....... [ 56%] tests/test_url.py F..................................................... [ 93%] .......... [100%] =================================== FAILURES =================================== ____________________ UrlTests.test_add_or_replace_parameter ____________________ self = <tests.test_url.UrlTests testMethod=test_add_or_replace_parameter> def test_add_or_replace_parameter(self): url = 'http://domain/test' self.assertEqual(add_or_replace_parameter(url, 'arg', 'v'), 'http://domain/test?arg=v') url = 'http://domain/test?arg1=v1&arg2=v2&arg3=v3' self.assertEqual(add_or_replace_parameter(url, 'arg4', 'v4'), 'http://domain/test?arg1=v1&arg2=v2&arg3=v3&arg4=v4') self.assertEqual(add_or_replace_parameter(url, 'arg3', 'nv3'), 'http://domain/test?arg1=v1&arg2=v2&arg3=nv3') url = 'http://domain/test?arg1=v1;arg2=v2' > self.assertEqual(add_or_replace_parameter(url, 'arg1', 'v3'), 'http://domain/test?arg1=v3&arg2=v2') E AssertionError: 'http://domain/test?arg1=v3' != 'http://domain/test?arg1=v3&arg2=v2' E - http://domain/test?arg1=v3 E + http://domain/test?arg1=v3&arg2=v2 E ? ++++++++ tests/test_url.py:303: AssertionError =============================== warnings summary =============================== tests/test_url.py::UrlTests::test_urljoin_rfc_deprecated /usr/lib/python3/dist-packages/w3lib/url.py:618: DeprecationWarning: w3lib.url.urljoin_rfc is deprecated, use urlparse.urljoin instead warnings.warn("w3lib.url.urljoin_rfc is deprecated, use urlparse.urljoin instead", -- Docs: https://docs.pytest.org/en/stable/warnings.html =========================== short test summary info ============================ FAILED tests/test_url.py::UrlTests::test_add_or_replace_parameter - Assertion... =================== 1 failed, 145 passed, 1 warning in 0.61s =================== _______________________________________________ Python-modules-team mailing list Python-modules-team@alioth-lists.debian.net https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/python-modules-team