Source: requests Version: 2.31.0+dfsg-1 Severity: serious Justification: FTBFS Tags: trixie sid ftbfs User: lu...@debian.org Usertags: ftbfs-20240313 ftbfs-trixie
Hi, During a rebuild of all packages in sid, your package failed to build on amd64. Relevant part (hopefully): > debian/rules build > dh build --with python3,sphinxdoc --buildsystem=pybuild > dh_update_autotools_config -O--buildsystem=pybuild > dh_autoreconf -O--buildsystem=pybuild > dh_auto_configure -O--buildsystem=pybuild > I: pybuild base:305: python3.12 setup.py config > /usr/lib/python3/dist-packages/setuptools/command/test.py:11: > DeprecationWarning: pkg_resources is deprecated as an API. See > https://setuptools.pypa.io/en/latest/pkg_resources.html > from pkg_resources import ( > /usr/lib/python3/dist-packages/setuptools/dist.py:744: > SetuptoolsDeprecationWarning: Invalid dash-separated options > !! > > > ******************************************************************************** > Usage of dash-separated 'provides-extra' will not be supported in > future > versions. Please use the underscore name 'provides_extra' instead. > > This deprecation is overdue, please update your project and remove > deprecated > calls to avoid build errors in the future. > > See > https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for > details. > > ******************************************************************************** > > !! > opt = self.warn_dash_deprecation(opt, section) > /usr/lib/python3/dist-packages/setuptools/dist.py:744: > SetuptoolsDeprecationWarning: Invalid dash-separated options > !! > > > ******************************************************************************** > Usage of dash-separated 'requires-dist' will not be supported in > future > versions. Please use the underscore name 'requires_dist' instead. > > This deprecation is overdue, please update your project and remove > deprecated > calls to avoid build errors in the future. > > See > https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for > details. > > ******************************************************************************** > > !! > opt = self.warn_dash_deprecation(opt, section) > /usr/lib/python3/dist-packages/setuptools/config/setupcfg.py:293: > _DeprecatedConfig: Deprecated config in `setup.cfg` > !! > > > ******************************************************************************** > The license_file parameter is deprecated, use license_files instead. > > This deprecation is overdue, please update your project and remove > deprecated > calls to avoid build errors in the future. > > See > https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for > details. > > ******************************************************************************** > > !! > parsed = self.parsers.get(option_name, lambda x: x)(value) > running config > I: pybuild base:305: python3.11 setup.py config > /usr/lib/python3/dist-packages/setuptools/command/test.py:11: > DeprecationWarning: pkg_resources is deprecated as an API. See > https://setuptools.pypa.io/en/latest/pkg_resources.html > from pkg_resources import ( > /usr/lib/python3/dist-packages/setuptools/dist.py:744: > SetuptoolsDeprecationWarning: Invalid dash-separated options > !! > > > ******************************************************************************** > Usage of dash-separated 'provides-extra' will not be supported in > future > versions. Please use the underscore name 'provides_extra' instead. > > This deprecation is overdue, please update your project and remove > deprecated > calls to avoid build errors in the future. > > See > https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for > details. > > ******************************************************************************** > > !! > opt = self.warn_dash_deprecation(opt, section) > /usr/lib/python3/dist-packages/setuptools/dist.py:744: > SetuptoolsDeprecationWarning: Invalid dash-separated options > !! > > > ******************************************************************************** > Usage of dash-separated 'requires-dist' will not be supported in > future > versions. Please use the underscore name 'requires_dist' instead. > > This deprecation is overdue, please update your project and remove > deprecated > calls to avoid build errors in the future. > > See > https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for > details. > > ******************************************************************************** > > !! > opt = self.warn_dash_deprecation(opt, section) > /usr/lib/python3/dist-packages/setuptools/config/setupcfg.py:293: > _DeprecatedConfig: Deprecated config in `setup.cfg` > !! > > > ******************************************************************************** > The license_file parameter is deprecated, use license_files instead. > > This deprecation is overdue, please update your project and remove > deprecated > calls to avoid build errors in the future. > > See > https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for > details. > > ******************************************************************************** > > !! > parsed = self.parsers.get(option_name, lambda x: x)(value) > running config > dh_auto_build -O--buildsystem=pybuild > I: pybuild base:305: /usr/bin/python3.12 setup.py build > /usr/lib/python3/dist-packages/setuptools/command/test.py:11: > DeprecationWarning: pkg_resources is deprecated as an API. See > https://setuptools.pypa.io/en/latest/pkg_resources.html > from pkg_resources import ( > /usr/lib/python3/dist-packages/setuptools/dist.py:744: > SetuptoolsDeprecationWarning: Invalid dash-separated options > !! > > > ******************************************************************************** > Usage of dash-separated 'provides-extra' will not be supported in > future > versions. Please use the underscore name 'provides_extra' instead. > > This deprecation is overdue, please update your project and remove > deprecated > calls to avoid build errors in the future. > > See > https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for > details. > > ******************************************************************************** > > !! > opt = self.warn_dash_deprecation(opt, section) > /usr/lib/python3/dist-packages/setuptools/dist.py:744: > SetuptoolsDeprecationWarning: Invalid dash-separated options > !! > > > ******************************************************************************** > Usage of dash-separated 'requires-dist' will not be supported in > future > versions. Please use the underscore name 'requires_dist' instead. > > This deprecation is overdue, please update your project and remove > deprecated > calls to avoid build errors in the future. > > See > https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for > details. > > ******************************************************************************** > > !! > opt = self.warn_dash_deprecation(opt, section) > /usr/lib/python3/dist-packages/setuptools/config/setupcfg.py:293: > _DeprecatedConfig: Deprecated config in `setup.cfg` > !! > > > ******************************************************************************** > The license_file parameter is deprecated, use license_files instead. > > This deprecation is overdue, please update your project and remove > deprecated > calls to avoid build errors in the future. > > See > https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for > details. > > ******************************************************************************** > > !! > parsed = self.parsers.get(option_name, lambda x: x)(value) > running build > running build_py > creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_requests/build/requests > copying requests/auth.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_requests/build/requests > copying requests/utils.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_requests/build/requests > copying requests/compat.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_requests/build/requests > copying requests/__init__.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_requests/build/requests > copying requests/status_codes.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_requests/build/requests > copying requests/cookies.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_requests/build/requests > copying requests/help.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_requests/build/requests > copying requests/exceptions.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_requests/build/requests > copying requests/models.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_requests/build/requests > copying requests/structures.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_requests/build/requests > copying requests/_internal_utils.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_requests/build/requests > copying requests/adapters.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_requests/build/requests > copying requests/api.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_requests/build/requests > copying requests/packages.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_requests/build/requests > copying requests/__version__.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_requests/build/requests > copying requests/hooks.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_requests/build/requests > copying requests/sessions.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_requests/build/requests > copying requests/certs.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_requests/build/requests > running egg_info > creating requests.egg-info > writing requests.egg-info/PKG-INFO > writing dependency_links to requests.egg-info/dependency_links.txt > writing requirements to requests.egg-info/requires.txt > writing top-level names to requests.egg-info/top_level.txt > writing manifest file 'requests.egg-info/SOURCES.txt' > reading manifest file 'requests.egg-info/SOURCES.txt' > reading manifest template 'MANIFEST.in' > warning: no files found matching 'pytest.ini' > adding license file 'LICENSE' > writing manifest file 'requests.egg-info/SOURCES.txt' > I: pybuild base:305: /usr/bin/python3 setup.py build > /usr/lib/python3/dist-packages/setuptools/command/test.py:11: > DeprecationWarning: pkg_resources is deprecated as an API. See > https://setuptools.pypa.io/en/latest/pkg_resources.html > from pkg_resources import ( > /usr/lib/python3/dist-packages/setuptools/dist.py:744: > SetuptoolsDeprecationWarning: Invalid dash-separated options > !! > > > ******************************************************************************** > Usage of dash-separated 'provides-extra' will not be supported in > future > versions. Please use the underscore name 'provides_extra' instead. > > This deprecation is overdue, please update your project and remove > deprecated > calls to avoid build errors in the future. > > See > https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for > details. > > ******************************************************************************** > > !! > opt = self.warn_dash_deprecation(opt, section) > /usr/lib/python3/dist-packages/setuptools/dist.py:744: > SetuptoolsDeprecationWarning: Invalid dash-separated options > !! > > > ******************************************************************************** > Usage of dash-separated 'requires-dist' will not be supported in > future > versions. Please use the underscore name 'requires_dist' instead. > > This deprecation is overdue, please update your project and remove > deprecated > calls to avoid build errors in the future. > > See > https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for > details. > > ******************************************************************************** > > !! > opt = self.warn_dash_deprecation(opt, section) > /usr/lib/python3/dist-packages/setuptools/config/setupcfg.py:293: > _DeprecatedConfig: Deprecated config in `setup.cfg` > !! > > > ******************************************************************************** > The license_file parameter is deprecated, use license_files instead. > > This deprecation is overdue, please update your project and remove > deprecated > calls to avoid build errors in the future. > > See > https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for > details. > > ******************************************************************************** > > !! > parsed = self.parsers.get(option_name, lambda x: x)(value) > running build > running build_py > creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build/requests > copying requests/auth.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build/requests > copying requests/utils.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build/requests > copying requests/compat.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build/requests > copying requests/__init__.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build/requests > copying requests/status_codes.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build/requests > copying requests/cookies.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build/requests > copying requests/help.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build/requests > copying requests/exceptions.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build/requests > copying requests/models.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build/requests > copying requests/structures.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build/requests > copying requests/_internal_utils.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build/requests > copying requests/adapters.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build/requests > copying requests/api.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build/requests > copying requests/packages.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build/requests > copying requests/__version__.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build/requests > copying requests/hooks.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build/requests > copying requests/sessions.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build/requests > copying requests/certs.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build/requests > running egg_info > writing requests.egg-info/PKG-INFO > writing dependency_links to requests.egg-info/dependency_links.txt > writing requirements to requests.egg-info/requires.txt > writing top-level names to requests.egg-info/top_level.txt > reading manifest file 'requests.egg-info/SOURCES.txt' > reading manifest template 'MANIFEST.in' > warning: no files found matching 'pytest.ini' > adding license file 'LICENSE' > writing manifest file 'requests.egg-info/SOURCES.txt' > dh_auto_test -O--buildsystem=pybuild > I: pybuild base:305: 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_QUOTES_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_pickleable 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" > ============================= test session starts > ============================== > platform linux -- Python 3.12.2, pytest-8.0.2, pluggy-1.4.0 > rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_requests/build > configfile: pyproject.toml > plugins: httpbin-2.0.0, mock-3.12.0 > collected 596 items / 167 deselected / 429 selected > > tests/test_help.py ... [ > 0%] > tests/test_hooks.py ... [ > 1%] > tests/test_lowlevel.py ........... [ > 3%] > tests/test_packages.py ... [ > 4%] > tests/test_requests.py ................................................. [ > 16%] > .......F................................................................ [ > 32%] > ........................................................................ [ > 49%] > ....... [ > 51%] > tests/test_structures.py .................... [ > 55%] > tests/test_testserver.py ......s.... [ > 58%] > tests/test_utils.py ..s................................................. [ > 70%] > ........................................................................ [ > 87%] > ...........................................sssssssssss > [100%] > > =================================== FAILURES > =================================== > _______________________ TestRequests.test_https_warnings > _______________________ > > self = <tests.test_requests.TestRequests object at 0x7fe284b3b8c0> > nosan_server = ('localhost', 42249, > '/tmp/pytest-of-user42/pytest-28/certs0/ca.pem') > > @pytest.mark.skipif( > SNIMissingWarning is None, > reason="urllib3 2.0 removed that warning and errors out instead", > ) > def test_https_warnings(self, nosan_server): > """warnings are emitted with requests.get""" > host, port, ca_bundle = nosan_server > if HAS_MODERN_SSL or HAS_PYOPENSSL: > warnings_expected = ("SubjectAltNameWarning",) > else: > warnings_expected = ( > "SNIMissingWarning", > "InsecurePlatformWarning", > "SubjectAltNameWarning", > ) > > > with pytest.warns(None) as warning_records: > > tests/test_requests.py:1015: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > self = WarningsChecker(record=True), expected_warning = None, match_expr = > None > > def __init__( > self, > expected_warning: Optional[ > Union[Type[Warning], Tuple[Type[Warning], ...]] > ] = Warning, > match_expr: Optional[Union[str, Pattern[str]]] = None, > *, > _ispytest: bool = False, > ) -> None: > check_ispytest(_ispytest) > super().__init__(_ispytest=True) > > msg = "exceptions must be derived from Warning, not %s" > if expected_warning is None: > > warnings.warn(WARNS_NONE_ARG, stacklevel=4) > E pytest.PytestRemovedIn8Warning: Passing None has been deprecated. > E See > https://docs.pytest.org/en/latest/how-to/capture-warnings.html#additional-use-cases-of-warnings-in-tests > for alternatives in common use cases. > > /usr/lib/python3/dist-packages/_pytest/recwarn.py:281: PytestRemovedIn8Warning > =============================== warnings summary > =============================== > tests/test_requests.py::TestRequests::test_set_basicauth[42-42] > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_requests/build/requests/auth.py:36: > DeprecationWarning: Non-string usernames will no longer be supported in > Requests 3.0.0. Please convert the object you've passed in (42) to a string > or bytes object in the near future to avoid problems. > warnings.warn( > > tests/test_requests.py::TestRequests::test_set_basicauth[42-42] > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_requests/build/requests/auth.py:46: > DeprecationWarning: Non-string passwords will no longer be supported in > Requests 3.0.0. Please convert the object you've passed in (<class 'int'>) to > a string or bytes object in the near future to avoid problems. > warnings.warn( > > tests/test_requests.py::TestRequests::test_set_basicauth[None-None] > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_requests/build/requests/auth.py:36: > DeprecationWarning: Non-string usernames will no longer be supported in > Requests 3.0.0. Please convert the object you've passed in (None) to a string > or bytes object in the near future to avoid problems. > warnings.warn( > > tests/test_requests.py::TestRequests::test_set_basicauth[None-None] > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_requests/build/requests/auth.py:46: > DeprecationWarning: Non-string passwords will no longer be supported in > Requests 3.0.0. Please convert the object you've passed in (<class > 'NoneType'>) to a string or bytes object in the near future to avoid problems. > warnings.warn( > > tests/test_requests.py::TestRequests::test_https_warnings > /usr/lib/python3/dist-packages/_pytest/fixtures.py:926: ResourceWarning: > unclosed <ssl.SSLSocket fd=13, family=2, type=1, proto=0, laddr=('127.0.0.1', > 42249)> > next(it) > 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_server_closes > /usr/lib/python3/dist-packages/_pytest/python.py:194: ResourceWarning: > unclosed <socket.socket fd=13, family=2, type=1, proto=0, laddr=('0.0.0.0', > 49762)> > 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:194: ResourceWarning: > unclosed <socket.socket fd=14, family=2, type=1, proto=0, laddr=('127.0.0.1', > 33244)> > 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:493: > 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::TestRequests::test_https_warnings - > pytest.Pyt... > === 1 failed, 415 passed, 13 skipped, 167 deselected, 13 warnings in 31.40s > ==== > E: pybuild pybuild:389: test: plugin distutils 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_QUOTES_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_pickleable 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" > I: pybuild base:305: cd > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build; python3.11 -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_QUOTES_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_pickleable 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" > ============================= test session starts > ============================== > platform linux -- Python 3.11.8, pytest-8.0.2, pluggy-1.4.0 > rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build > configfile: pyproject.toml > plugins: httpbin-2.0.0, mock-3.12.0 > collected 596 items / 167 deselected / 429 selected > > tests/test_help.py ... [ > 0%] > tests/test_hooks.py ... [ > 1%] > tests/test_lowlevel.py ........... [ > 3%] > tests/test_packages.py ... [ > 4%] > tests/test_requests.py ................................................. [ > 16%] > .......F................................................................ [ > 32%] > ........................................................................ [ > 49%] > ....... [ > 51%] > tests/test_structures.py .................... [ > 55%] > tests/test_testserver.py ......s.... [ > 58%] > tests/test_utils.py ..s................................................. [ > 70%] > ........................................................................ [ > 87%] > ...........................................sssssssssss > [100%] > > =================================== FAILURES > =================================== > _______________________ TestRequests.test_https_warnings > _______________________ > > self = <tests.test_requests.TestRequests object at 0x7f49a10ea450> > nosan_server = ('localhost', 35663, > '/tmp/pytest-of-user42/pytest-29/certs0/ca.pem') > > @pytest.mark.skipif( > SNIMissingWarning is None, > reason="urllib3 2.0 removed that warning and errors out instead", > ) > def test_https_warnings(self, nosan_server): > """warnings are emitted with requests.get""" > host, port, ca_bundle = nosan_server > if HAS_MODERN_SSL or HAS_PYOPENSSL: > warnings_expected = ("SubjectAltNameWarning",) > else: > warnings_expected = ( > "SNIMissingWarning", > "InsecurePlatformWarning", > "SubjectAltNameWarning", > ) > > > with pytest.warns(None) as warning_records: > > tests/test_requests.py:1015: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > self = WarningsChecker(record=True), expected_warning = None, match_expr = > None > > def __init__( > self, > expected_warning: Optional[ > Union[Type[Warning], Tuple[Type[Warning], ...]] > ] = Warning, > match_expr: Optional[Union[str, Pattern[str]]] = None, > *, > _ispytest: bool = False, > ) -> None: > check_ispytest(_ispytest) > super().__init__(_ispytest=True) > > msg = "exceptions must be derived from Warning, not %s" > if expected_warning is None: > > warnings.warn(WARNS_NONE_ARG, stacklevel=4) > E pytest.PytestRemovedIn8Warning: Passing None has been deprecated. > E See > https://docs.pytest.org/en/latest/how-to/capture-warnings.html#additional-use-cases-of-warnings-in-tests > for alternatives in common use cases. > > /usr/lib/python3/dist-packages/_pytest/recwarn.py:281: PytestRemovedIn8Warning > =============================== warnings summary > =============================== > tests/test_requests.py::TestRequests::test_set_basicauth[42-42] > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build/requests/auth.py:36: > DeprecationWarning: Non-string usernames will no longer be supported in > Requests 3.0.0. Please convert the object you've passed in (42) to a string > or bytes object in the near future to avoid problems. > warnings.warn( > > tests/test_requests.py::TestRequests::test_set_basicauth[42-42] > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build/requests/auth.py:46: > DeprecationWarning: Non-string passwords will no longer be supported in > Requests 3.0.0. Please convert the object you've passed in (<class 'int'>) to > a string or bytes object in the near future to avoid problems. > warnings.warn( > > tests/test_requests.py::TestRequests::test_set_basicauth[None-None] > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build/requests/auth.py:36: > DeprecationWarning: Non-string usernames will no longer be supported in > Requests 3.0.0. Please convert the object you've passed in (None) to a string > or bytes object in the near future to avoid problems. > warnings.warn( > > tests/test_requests.py::TestRequests::test_set_basicauth[None-None] > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build/requests/auth.py:46: > DeprecationWarning: Non-string passwords will no longer be supported in > Requests 3.0.0. Please convert the object you've passed in (<class > 'NoneType'>) to a string or bytes object in the near future to avoid problems. > warnings.warn( > > tests/test_requests.py::TestRequests::test_https_warnings > /usr/lib/python3/dist-packages/_pytest/fixtures.py:926: ResourceWarning: > unclosed <ssl.SSLSocket fd=13, family=2, type=1, proto=0, laddr=('127.0.0.1', > 35663)> > next(it) > 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_server_closes > /usr/lib/python3/dist-packages/_pytest/python.py:194: ResourceWarning: > unclosed <socket.socket fd=13, family=2, type=1, proto=0, laddr=('0.0.0.0', > 45580)> > 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:194: ResourceWarning: > unclosed <socket.socket fd=14, family=2, type=1, proto=0, laddr=('127.0.0.1', > 51958)> > 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.11_requests/build/requests/utils.py:493: > 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::TestRequests::test_https_warnings - > pytest.Pyt... > === 1 failed, 415 passed, 13 skipped, 167 deselected, 13 warnings in 31.35s > ==== > E: pybuild pybuild:389: test: plugin distutils failed with: exit code=1: cd > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_requests/build; python3.11 -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_QUOTES_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_pickleable 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.12 3.11" > returned exit code 13 The full build log is available from: http://qa-logs.debian.net/2024/03/13/requests_2.31.0+dfsg-1_unstable.log All bugs filed during this archive rebuild are listed at: https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240313;users=lu...@debian.org or: https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240313&fusertaguser=lu...@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results A list of current common problems and possible solutions is available at http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute! If you reassign this bug to another package, please mark it as 'affects'-ing this package. See https://www.debian.org/Bugs/server-control#affects If you fail to reproduce this, please provide a build log and diff it with mine so that we can identify if something relevant changed in the meantime.