• Bug#1091503: requests: will FTBFS during trixie support period (2/2)

    From Santiago Vila@21:1/5 to All on Fri Dec 27 20:00:02 2024
    [continued from previous message]

    /usr/lib/python3/dist-packages/urllib3/connectionpool.py:1099: InsecureRequestWarning: Unverified HTTPS request is being made to host 'localhost'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/
    advanced-usage.html#tls-warnings
    warnings.warn(

    tests/test_testserver.py::TestTestServer::test_server_closes
    /usr/lib/python3/dist-packages/_pytest/python.py:159: ResourceWarning: unclosed <socket.socket fd=13, family=2, type=1, proto=0, laddr=('0.0.0.0', 58082)>
    result = testfunction(**testargs)
    Enable tracemalloc to get traceback where the object was allocated.
    See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.

    tests/test_testserver.py::TestTestServer::test_basic_waiting_server
    /usr/lib/python3/dist-packages/_pytest/python.py:159: ResourceWarning: unclosed <socket.socket fd=14, family=2, type=1, proto=0, laddr=('127.0.0.1', 56170)>
    result = testfunction(**testargs)
    Enable tracemalloc to get traceback where the object was allocated.
    See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.

    tests/test_utils.py::TestContentEncodingDetection::test_none tests/test_utils.py::TestContentEncodingDetection::test_pragmas[<meta charset="UTF-8">]
    tests/test_utils.py::TestContentEncodingDetection::test_pragmas[<meta http-equiv="Content-type" content="text/html;charset=UTF-8">]
    tests/test_utils.py::TestContentEncodingDetection::test_pragmas[<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />]
    tests/test_utils.py::TestContentEncodingDetection::test_pragmas[<?xml version="1.0" encoding="UTF-8"?>]
    tests/test_utils.py::TestContentEncodingDetection::test_precedence
    /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_requests/build/requests/utils.py:494: DeprecationWarning: In requests 3.0, get_encodings_from_content will be removed. For more information, please see the discussion on issue #2266. (This warning should only
    appear once.)
    warnings.warn(

    -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================
    FAILED tests/test_requests.py::TestPreparingURLs::test_different_connection_pool_for_mtls_settings
    === 1 failed, 423 passed, 15 skipped, 167 deselected, 16 warnings in 37.45s ====
    E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_requests/build; python3.12 -m pytest tests -k "not test_use_proxy_from_environment and not TestGetEnvironProxies and not test_mixed_case_
    scheme_acceptable and not test_HTTP_200_OK_GET_ALTERNATIVE and not test_unicode_get and not test_HTTP_302_ALLOW_REDIRECT_GET and not test_HTTP_307_ALLOW_REDIRECT_POST and not test_HTTP_307_ALLOW_REDIRECT_POST_WITH_SEEKABLE and not test_HTTP_302_TOO_MANY_
    REDIRECTS and not test_HTTP_302_TOO_MANY_REDIRECTS_WITH_PARAMS and not test_http_301_changes_post_to_get and not test_http_301_doesnt_change_head_to_get and not test_http_302_changes_post_to_get and not test_http_302_doesnt_change_head_to_get and not
    test_http_303_changes_post_to_get and not test_http_303_doesnt_change_head_to_get and not test_header_and_body_removal_on_redirect and not test_transfer_enc_removal_on_redirect and not test_fragment_maintained_on_redirect and not test_HTTP_
    200_OK_GET_WITH_PARAMS and not test_HTTP_200_OK_GET_WITH_MIXED_PARAMS and not test_set_cookie_on_301 and not test_cookie_sent_on_redirect and not test_cookie_removed_on_expire and not test_cookie_quote_wrapped and not test_cookie_persists_via_api and
    not test_request_cookie_overrides_session_cookie and not test_request_cookies_not_persisted and not test_generic_cookiejar_works and not test_param_cookiejar_works and not test_cookielib_cookiejar_on_redirect and not test_requests_in_history_are_not_
    overridden and not test_history_is_always_a_list and not test_user_agent_transfers and not test_HTTP_200_OK_HEAD and not test_HTTP_200_OK_PUT and not test_BASICAUTH_TUPLE_HTTP_200_OK_GET and not test_proxy_authorization_preserved_on_request and not test_
    basicauth_with_netrc and not test_DIGEST_HTTP_200_OK_GET and not test_DIGEST_AUTH_RETURNS_COOKIE and not test_DIGEST_AUTH_SETS_SESSION_COOKIES and not test_DIGEST_STREAM and not test_DIGESTAUTH_WRONG_HTTP_401_GET and not test_DIGESTAUTH_QUOTE
    S_QOP_VALUE and not test_POSTBIN_GET_POST_FILES and not test_invalid_files_input and not test_POSTBIN_SEEKED_OBJECT_WITH_NO_ITER and not test_POSTBIN_GET_POST_FILES_WITH_DATA and not test_post_with_custom_mapping and not test_conflicting_post_params and
    not test_request_ok_set and not test_status_raising and not test_decompress_gzip and not test_unicode_header_name and not test_pyopenssl_redirect and not test_http_with_certificate and not test_certificate_failure and not test_urlencoded_get_query_
    multivalued_param and not test_different_encodings_dont_break_post and not test_unicode_multipart_post and not test_unicode_method_name and not test_unicode_method_name_with_request_object and not test_custom_content_type and not test_hook_receives_
    request_arguments and not test_prepared_request_hook and not test_prepared_from_session and not test_request_with_bytestring_host and not test_time_elapsed_blank and not test_request_and_response_are_pickleable and not test_prepared_request_is_pi
    ckleable and not test_prepared_request_with_file_is_pickleable and not test_prepared_request_with_hook_is_pickleable and not test_session_pickling and not test_fixes_1329 and not test_uppercase_scheme_redirect and not test_header_remove_is_case_
    insensitive and not test_params_are_merged_case_sensitive and not test_header_validation and not test_auth_is_stripped_on_http_downgrade and not test_auth_is_retained_for_redirect_on_host and not test_manual_redirect_with_partial_body_read and not test_
    redirect_with_wrong_gzipped_header and not test_requests_history_is_saved and not test_json_param_post_content_type_works and not test_response_iter_lines and not test_response_context_manager and not test_unconsumed_session_response_closes_connection
    and not test_response_json_when_content_is_None and not test_custom_redirect_mixin and not test_stream_timeout and not test_none_timeout and not test_read_timeout and not test_connect_timeout and not test_total_timeout_connect and not test_encoded
    _methods and not test_proxy_env_vars_override_default and not test_urllib3_retries and not test_redirecting_to_bad_url and not test_json_decode_compatibility and not test_set_environ and not test_json_decode_persists_doc_attr and not test_header_with_
    subclass_types and not test_urllib3_pool_connection_closed"
    dh_auto_test: error: pybuild --test -i python{version} -p "3.13 3.12" returned exit code 13
    make: *** [debian/rules:116: build] Error 25
    dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2 --------------------------------------------------------------------------------

    The above is just how the build ends and not necessarily the most relevant part.
    If required, the full build log is available here:

    https://people.debian.org/~sanvila/build-logs/ftbfs-future/

    About the archive rebuild: This is an effort to keep trixie free from FTBFS bugs
    during its lifetime as a supported distribution, as explained here:

    https://lists.debian.org/debian-devel/2024/05/msg00414.html

    (While they are not yet, please note that the bugs will be RC for trixie)

    The build was made using sbuild and a reduced chroot with only
    build-essential packages.

    If you could not reproduce the bug please contact me privately, as I
    am willing to provide ssh access to a virtual machine where the bug is
    fully reproducible.

    If this is really a bug in one of the build-depends, please use
    reassign and affects, so that this is still visible in the BTS web
    page for this package.

    Thanks.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)