Source: python-urllib3
Version: 2.0.7-2
Severity: normal
User: [email protected]
Usertags: python3.13
Forwarded: https://github.com/urllib3/urllib3/pull/3156

This package failed build from source when test-built against a version of
python3-defaults that includes 3.13 as a supported version.

To reproduce this issue, build against python3-defaults (python3-all-dev etc.)
from Debian experimental.

What's new in Python 3.13:
https://docs.python.org/3.13/whatsnew/3.13.html

Log snippet:

   dh_auto_test -O--buildsystem=pybuild
I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_urllib3/build; 
python3.13 -m pytest -k "not requires_network and not test_recent_date"
============================= test session starts ==============================
platform linux -- Python 3.13.0rc2, pytest-8.3.3, pluggy-1.5.0
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_urllib3/build
configfile: pyproject.toml
plugins: typeguard-4.3.0, timeout-2.3.1
collected 2307 items / 45 deselected / 2262 selected

test/contrib/test_pyopenssl.py ......................................... [  1%]
.................ssssssssssssss.sssssssss..ssssss...sssssssssss.s...ssss [  4%]
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [  8%]
ssssssssssssssssssss.s........................................s......s.. [ 11%]
................................s.....s....s............................ [ 14%]
.....sss....                                                             [ 15%]
test/contrib/test_pyopenssl_dependencies.py ..                           [ 15%]
test/contrib/test_securetransport.py sssssssssssssssssssssssssssssssssss [ 16%]
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 19%]
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 23%]
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 26%]
sss                                                                      [ 26%]
test/contrib/test_socks.py ...................                           [ 27%]
test/test_collections.py .............................................   [ 29%]
test/test_compatibility.py .                                             [ 29%]
test/test_connection.py ............................                     [ 30%]
test/test_connectionpool.py ............................................ [ 32%]
..............................                                           [ 33%]
test/test_exceptions.py ..............                                   [ 34%]
test/test_fields.py ....................                                 [ 35%]
test/test_filepost.py .........                                          [ 35%]
test/test_no_ssl.py ..                                                   [ 35%]
test/test_poolmanager.py s....................................           [ 37%]
test/test_proxymanager.py ......                                         [ 37%]
test/test_queue_monkeypatch.py .                                         [ 37%]
test/test_response.py ..........................sssssss.....F........... [ 39%]
..........................................                               [ 41%]
test/test_retry.py ..................................................... [ 44%]
........                                                                 [ 44%]
test/test_ssl.py ..................................                      [ 45%]
test/test_ssltransport.py .................                              [ 46%]
test/test_util.py ...................................................... [ 49%]
........................................................................ [ 52%]
........................................................................ [ 55%]
.........................................s.ss..s.ss..................... [ 58%]
..................................................................       [ 61%]
test/test_wait.py .............                                          [ 62%]
test/with_dummyserver/test_chunked_transfer.py .................         [ 62%]
test/with_dummyserver/test_connection.py ........                        [ 63%]
test/with_dummyserver/test_connectionpool.py ........................... [ 64%]
........................................................................ [ 67%]
........................................................................ [ 70%]
........................................................................ [ 74%]
........................................................................ [ 77%]
....................................................                     [ 79%]
test/with_dummyserver/test_https.py ssssssssssssss.sssssssss..ssssss...s [ 81%]
ssssssssss.sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 84%]
ssssssssssssssssssssssssssssssssssss.s.................................. [ 87%]
.............s..................................s..........s............ [ 90%]
......                                                                   [ 90%]
test/with_dummyserver/test_no_ssl.py ..                                  [ 90%]
test/with_dummyserver/test_poolmanager.py .............................. [ 92%]
.................                                                        [ 93%]
test/with_dummyserver/test_proxy_poolmanager.py ....s................... [ 94%]
.................                                                        [ 94%]
test/with_dummyserver/test_socketlevel.py .............................. [ 96%]
............sss......s......................................s.s.s....... [ 99%]
..............                                                           [100%]

=================================== FAILURES ===================================
__________________________ TestResponse.test_base_io ___________________________

cls = <class '_pytest.runner.CallInfo'>
func = <function call_and_report.<locals>.<lambda> at 0xffff92175bc0>
when = 'call'
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)

    @classmethod
    def from_call(
        cls,
        func: Callable[[], TResult],
        when: Literal["collect", "setup", "call", "teardown"],
        reraise: type[BaseException] | tuple[type[BaseException], ...] | None = 
None,
    ) -> CallInfo[TResult]:
        """Call func, wrapping the result in a CallInfo.
    
        :param func:
            The function to call. Called without arguments.
        :type func: Callable[[], _pytest.runner.TResult]
        :param when:
            The phase in which the function is called.
        :param reraise:
            Exception or exceptions that shall propagate if raised by the
            function, instead of being wrapped in the CallInfo.
        """
        excinfo = None
        start = timing.time()
        precise_start = timing.perf_counter()
        try:
>           result: TResult | None = func()

/usr/lib/python3/dist-packages/_pytest/runner.py:341: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3/dist-packages/_pytest/runner.py:242: in <lambda>
    lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise
/usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, 
firstresult)
/usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
/usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in 
pytest_runtest_call
    yield from thread_exception_runtest_hook()
/usr/lib/python3/dist-packages/_pytest/threadexception.py:68: in 
thread_exception_runtest_hook
    yield
/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in 
pytest_runtest_call
    yield from unraisable_exception_runtest_hook()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    def unraisable_exception_runtest_hook() -> Generator[None]:
        with catch_unraisable_exception() as cm:
            try:
                yield
            finally:
                if cm.unraisable:
                    if cm.unraisable.err_msg is not None:
                        err_msg = cm.unraisable.err_msg
                    else:
                        err_msg = "Exception ignored in"
                    msg = f"{err_msg}: {cm.unraisable.object!r}\n\n"
                    msg += "".join(
                        traceback.format_exception(
                            cm.unraisable.exc_type,
                            cm.unraisable.exc_value,
                            cm.unraisable.exc_traceback,
                        )
                    )
>                   warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
E                   pytest.PytestUnraisableExceptionWarning: Exception ignored 
in: <urllib3.response.BaseHTTPResponse object at 0xffff92bf81f0>
E                   
E                   Traceback (most recent call last):
E                     File 
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_urllib3/build/urllib3/response.py", 
line 408, in close
E                       raise NotImplementedError()
E                   NotImplementedError

/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:85: 
PytestUnraisableExceptionWarning
=============================== warnings summary ===============================
test/contrib/test_pyopenssl.py: 6 warnings
test/with_dummyserver/test_https.py: 20 warnings
test/with_dummyserver/test_no_ssl.py: 1 warning
test/with_dummyserver/test_proxy_poolmanager.py: 16 warnings
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_urllib3/build/dummyserver/server.py:173:
 DeprecationWarning: ssl.PROTOCOL_TLS is deprecated
    ctx = ssl.SSLContext(ssl_version)

test/contrib/test_pyopenssl.py::TestHTTPS::test_alpn_default
test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_alpn_default
test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_alpn_default
test/with_dummyserver/test_https.py::TestHTTPS::test_alpn_default
test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_alpn_default
test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_alpn_default
test/with_dummyserver/test_socketlevel.py::TestALPN::test_alpn_protocol_in_first_request_packet
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_urllib3/build/test/__init__.py:97: 
DeprecationWarning: ssl.PROTOCOL_TLS is deprecated
    ctx = ctx_cls(protocol=ssl_.PROTOCOL_TLS)  # type: ignore[misc, 
attr-defined]

test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_simple
test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_simple
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_urllib3/build/dummyserver/server.py:173:
 DeprecationWarning: ssl.PROTOCOL_TLSv1 is deprecated
    ctx = ssl.SSLContext(ssl_version)

test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_simple
test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_simple
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_urllib3/build/dummyserver/server.py:173:
 DeprecationWarning: ssl.PROTOCOL_TLSv1_1 is deprecated
    ctx = ssl.SSLContext(ssl_version)

test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_simple
test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_simple
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_urllib3/build/dummyserver/server.py:173:
 DeprecationWarning: ssl.PROTOCOL_TLSv1_2 is deprecated
    ctx = ssl.SSLContext(ssl_version)

test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_server_hostname
  /usr/lib/python3/dist-packages/_pytest/python.py:159: ResourceWarning: 
unclosed <socket.socket fd=16, family=2, type=1, proto=6, laddr=('127.0.0.1', 
43802), raddr=('127.0.0.1', 46125)>
    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.

test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_server_hostname
  /usr/lib/python3/dist-packages/_pytest/python.py:159: ResourceWarning: 
unclosed <socket.socket fd=16, family=2, type=1, proto=6, laddr=('127.0.0.1', 
50686), raddr=('127.0.0.1', 37797)>
    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.

test/contrib/test_pyopenssl.py: 14 warnings
test/with_dummyserver/test_socketlevel.py: 16 warnings
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_urllib3/build/test/with_dummyserver/test_socketlevel.py:160:
 DeprecationWarning: ssl.PROTOCOL_TLS is deprecated
    context = ssl.SSLContext(ssl_version)

test/contrib/test_socks.py: 17 warnings
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_urllib3/build/dummyserver/server.py:133:
 NoIPv6Warning: No IPv6 support. Falling back to IPv4.
    warnings.warn("No IPv6 support. Falling back to IPv4.", NoIPv6Warning)

test/contrib/test_socks.py::TestSOCKSWithTLS::test_basic_request
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_urllib3/build/test/contrib/test_socks.py:747:
 DeprecationWarning: ssl.PROTOCOL_TLS is deprecated
    context = better_ssl.SSLContext(ssl.PROTOCOL_SSLv23)  # type: ignore[misc]

test/test_ssl.py::TestSSL::test_create_urllib3_context_ssl_version_and_ssl_min_max_version_no_error[kwargs0]
test/test_ssl.py::TestSSL::test_create_urllib3_context_ssl_version_and_ssl_min_max_version_no_error[kwargs1]
test/test_ssl.py::TestSSL::test_create_urllib3_context_ssl_version_and_ssl_min_max_version_no_error[kwargs2]
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_urllib3/build/urllib3/util/ssl_.py:290: 
DeprecationWarning: ssl.TLSVersion.TLSv1 is deprecated
    context.minimum_version = ssl_minimum_version

test/test_ssl.py::TestSSL::test_create_urllib3_context_ssl_version_and_ssl_min_max_version_no_error[kwargs0]
test/test_ssl.py::TestSSL::test_create_urllib3_context_ssl_version_and_ssl_min_max_version_no_error[kwargs1]
test/test_ssl.py::TestSSL::test_create_urllib3_context_ssl_version_and_ssl_min_max_version_no_error[kwargs2]
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_urllib3/build/urllib3/util/ssl_.py:295: 
DeprecationWarning: ssl.TLSVersion.TLSv1 is deprecated
    context.maximum_version = ssl_maximum_version

test/test_ssltransport.py::SingleTLSLayerTestCase::test_unwrap_existing_socket
  /usr/lib/python3/dist-packages/_pytest/python.py:159: ResourceWarning: 
unclosed <socket.socket fd=19, family=10, type=1, proto=6, laddr=('::1', 36290, 
0, 0), raddr=('::1', 37393, 0, 0)>
    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.

test/test_ssltransport.py::SingleTLSLayerTestCase::test_unwrap_existing_socket
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_urllib3/build/dummyserver/server.py:146:
 ResourceWarning: unclosed <ssl.SSLSocket fd=18, family=10, type=1, proto=0, 
laddr=('::1', 37393, 0, 0), raddr=('::1', 36290, 0, 0)>
    self.socket_handler(sock)
  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.

test/test_ssltransport.py::SingleTLSLayerTestCase::test_ssl_object_attributes
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_urllib3/build/urllib3/util/ssltransport.py:198:
 DeprecationWarning: ssl NPN is deprecated, use ALPN instead
    return self.sslobj.selected_npn_protocol()

test/with_dummyserver/test_connection.py::test_returns_urllib3_HTTPResponse
  /usr/lib/python3/dist-packages/_pytest/python.py:159: ResourceWarning: 
unclosed <socket.socket fd=22, family=10, type=1, proto=6, laddr=('::1', 59310, 
0, 0), raddr=('::1', 44709, 0, 0)>
    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.

test/with_dummyserver/test_connection.py::test_does_not_release_conn
  /usr/lib/python3/dist-packages/_pytest/python.py:159: ResourceWarning: 
unclosed <socket.socket fd=23, family=10, type=1, proto=6, laddr=('::1', 55072, 
0, 0), raddr=('::1', 37599, 0, 0)>
    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.

test/with_dummyserver/test_connection.py::test_double_getresponse
  /usr/lib/python3/dist-packages/_pytest/python.py:159: ResourceWarning: 
unclosed <socket.socket fd=23, family=10, type=1, proto=6, laddr=('::1', 35670, 
0, 0), raddr=('::1', 42209, 0, 0)>
    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.

test/with_dummyserver/test_connectionpool.py::TestConnectionPoolTimeouts::test_conn_closed
  /usr/lib/python3.13/threading.py:281: ResourceWarning: unclosed 
<socket.socket fd=22, family=10, type=1, proto=6, laddr=('::1', 53132, 0, 0), 
raddr=('::1', 43085, 0, 0)>
    def __init__(self, lock=None):
  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.

test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_headers_not_modified_by_request[dict-False-True]
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_urllib3/build/test/with_dummyserver/test_connectionpool.py:1072:
 ResourceWarning: unclosed <socket.socket fd=24, family=10, type=1, proto=6, 
laddr=('::1', 49492, 0, 0), raddr=('::1', 33985, 0, 0)>
    conn = pool._get_conn()
  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.

test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_headers_not_modified_by_request[dict-False-True]
  /usr/lib/python3/dist-packages/_pytest/python.py:159: ResourceWarning: 
unclosed <socket.socket fd=24, family=10, type=1, proto=6, laddr=('::1', 49504, 
0, 0), raddr=('::1', 33985, 0, 0)>
    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.

test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_headers_not_modified_by_request[dict-False-False]
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_urllib3/build/test/with_dummyserver/test_connectionpool.py:1072:
 ResourceWarning: unclosed <socket.socket fd=24, family=10, type=1, proto=6, 
laddr=('::1', 49518, 0, 0), raddr=('::1', 33985, 0, 0)>
    conn = pool._get_conn()
  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.

test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_headers_not_modified_by_request[dict-False-False]
  /usr/lib/python3/dist-packages/_pytest/python.py:159: ResourceWarning: 
unclosed <socket.socket fd=25, family=10, type=1, proto=6, laddr=('::1', 49530, 
0, 0), raddr=('::1', 33985, 0, 0)>
    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.

test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_headers_not_modified_by_request[HTTPHeaderDict-False-True]
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_urllib3/build/test/with_dummyserver/test_connectionpool.py:1072:
 ResourceWarning: unclosed <socket.socket fd=24, family=10, type=1, proto=6, 
laddr=('::1', 49572, 0, 0), raddr=('::1', 33985, 0, 0)>
    conn = pool._get_conn()
  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.

test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_headers_not_modified_by_request[HTTPHeaderDict-False-True]
  /usr/lib/python3/dist-packages/_pytest/python.py:159: ResourceWarning: 
unclosed <socket.socket fd=25, family=10, type=1, proto=6, laddr=('::1', 49574, 
0, 0), raddr=('::1', 33985, 0, 0)>
    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.

test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_headers_not_modified_by_request[HTTPHeaderDict-False-False]
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_urllib3/build/test/with_dummyserver/test_connectionpool.py:1072:
 ResourceWarning: unclosed <socket.socket fd=24, family=10, type=1, proto=6, 
laddr=('::1', 49578, 0, 0), raddr=('::1', 33985, 0, 0)>
    conn = pool._get_conn()
  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.

test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_headers_not_modified_by_request[HTTPHeaderDict-False-False]
  /usr/lib/python3/dist-packages/_pytest/python.py:159: ResourceWarning: 
unclosed <socket.socket fd=24, family=10, type=1, proto=6, laddr=('::1', 49588, 
0, 0), raddr=('::1', 33985, 0, 0)>
    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.

test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_request_chunked_is_deprecated
  /usr/lib/python3/dist-packages/_pytest/python.py:159: ResourceWarning: 
unclosed <socket.socket fd=26, family=10, type=1, proto=6, laddr=('::1', 49600, 
0, 0), raddr=('::1', 33985, 0, 0)>
    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.

test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_server_hostname
  /usr/lib/python3/dist-packages/_pytest/python.py:159: ResourceWarning: 
unclosed <ssl.SSLSocket fd=24, family=2, type=1, proto=6, laddr=('127.0.0.1', 
55778), raddr=('127.0.0.1', 37703)>
    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.

test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_server_hostname
  /usr/lib/python3/dist-packages/_pytest/python.py:159: ResourceWarning: 
unclosed <ssl.SSLSocket fd=24, family=2, type=1, proto=6, laddr=('127.0.0.1', 
39864), raddr=('127.0.0.1', 37461)>
    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.

test/with_dummyserver/test_socketlevel.py::TestClientCerts::test_client_cert_with_string_password
test/with_dummyserver/test_socketlevel.py::TestClientCerts::test_client_cert_with_bytes_password
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_urllib3/build/test/with_dummyserver/test_socketlevel.py:370:
 DeprecationWarning: ssl.PROTOCOL_TLS is deprecated
    ssl_context = ssl_.SSLContext(ssl_.PROTOCOL_SSLv23)

test/with_dummyserver/test_socketlevel.py::TestClientCerts::test_load_keyfile_with_invalid_password
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_urllib3/build/test/with_dummyserver/test_socketlevel.py:390:
 DeprecationWarning: ssl.PROTOCOL_TLS is deprecated
    context = ssl_.SSLContext(ssl_.PROTOCOL_SSLv23)

test/with_dummyserver/test_socketlevel.py::TestClientCerts::test_load_invalid_cert_file
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_urllib3/build/test/with_dummyserver/test_socketlevel.py:403:
 DeprecationWarning: ssl.PROTOCOL_TLS is deprecated
    context = ssl_.SSLContext(ssl_.PROTOCOL_SSLv23)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED test/test_response.py::TestResponse::test_base_io - 
pytest.PytestUnraisableExceptionWarning: Exception ignored in: 
<urllib3.response.BaseHTTPResponse object at 0xffff92bf81f0>

Traceback (most recent call last):
  File 
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_urllib3/build/urllib3/response.py", 
line 408, in close
    raise NotImplementedError()
NotImplementedError
= 1 failed, 1698 passed, 563 skipped, 45 deselected, 134 warnings in 362.09s 
(0:06:02) =
<sys>:0: ResourceWarning: unclosed <socket.socket fd=21, family=10, type=1, 
proto=6, laddr=('::1', 56766, 0, 0), raddr=('::1', 44651, 0, 0)>
ResourceWarning: Enable tracemalloc to get the object allocation traceback
<sys>:0: ResourceWarning: unclosed <socket.socket fd=24, family=10, type=1, 
proto=6, laddr=('::1', 56156, 0, 0), raddr=('::1', 46487, 0, 0)>
ResourceWarning: Enable tracemalloc to get the object allocation traceback
<sys>:0: ResourceWarning: unclosed <socket.socket fd=27, family=10, type=1, 
proto=6, laddr=('::1', 34058, 0, 0), raddr=('::1', 34381, 0, 0)>
ResourceWarning: Enable tracemalloc to get the object allocation traceback
<sys>:0: ResourceWarning: unclosed <socket.socket fd=30, family=10, type=1, 
proto=6, laddr=('::1', 51414, 0, 0), raddr=('::1', 35227, 0, 0)>
ResourceWarning: Enable tracemalloc to get the object allocation traceback
<sys>:0: ResourceWarning: unclosed <socket.socket fd=33, family=10, type=1, 
proto=6, laddr=('::1', 54794, 0, 0), raddr=('::1', 40873, 0, 0)>
ResourceWarning: Enable tracemalloc to get the object allocation traceback
E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_urllib3/build; python3.13 -m pytest -k 
"not requires_network and not test_recent_date"
I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_urllib3/build; 
python3.12 -m pytest -k "not requires_network and not test_recent_date"
============================= test session starts ==============================
platform linux -- Python 3.12.6, pytest-8.3.3, pluggy-1.5.0
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_urllib3/build
configfile: pyproject.toml
plugins: typeguard-4.3.0, timeout-2.3.1
collected 2307 items / 45 deselected / 2262 selected

test/contrib/test_pyopenssl.py ......................................... [  1%]
.................ssssssssssssss.sssssssss..ssssss...sssssssssss.s...ssss [  4%]
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [  8%]
ssssssssssssssssssss.s........................................s......s.. [ 11%]
................................s.....s....s............................ [ 14%]
.....sss....                                                             [ 15%]
test/contrib/test_pyopenssl_dependencies.py ..                           [ 15%]
test/contrib/test_securetransport.py sssssssssssssssssssssssssssssssssss [ 16%]
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 19%]
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 23%]
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 26%]
sss                                                                      [ 26%]
test/contrib/test_socks.py ...................                           [ 27%]
test/test_collections.py .............................................   [ 29%]
test/test_compatibility.py .                                             [ 29%]
test/test_connection.py ............................                     [ 30%]
test/test_connectionpool.py ............................................ [ 32%]
..............................                                           [ 33%]
test/test_exceptions.py ..............                                   [ 34%]
test/test_fields.py ....................                                 [ 35%]
test/test_filepost.py .........                                          [ 35%]
test/test_no_ssl.py ..                                                   [ 35%]
test/test_poolmanager.py s....................................           [ 37%]
test/test_proxymanager.py ......                                         [ 37%]
test/test_queue_monkeypatch.py .                                         [ 37%]
test/test_response.py ..........................sssssss................. [ 39%]
..........................................                               [ 41%]
test/test_retry.py ..................................................... [ 44%]
........                                                                 [ 44%]
test/test_ssl.py ..................................                      [ 45%]
test/test_ssltransport.py .................                              [ 46%]
test/test_util.py ...................................................... [ 49%]
........................................................................ [ 52%]
........................................................................ [ 55%]
.........................................s.ss..s.ss..................... [ 58%]
..................................................................       [ 61%]
test/test_wait.py .............                                          [ 62%]
test/with_dummyserver/test_chunked_transfer.py .................         [ 62%]
test/with_dummyserver/test_connection.py ........                        [ 63%]
test/with_dummyserver/test_connectionpool.py ........................... [ 64%]
........................................................................ [ 67%]
........................................................................ [ 70%]
........................................................................ [ 74%]
........................................................................ [ 77%]
....................................................                     [ 79%]
test/with_dummyserver/test_https.py ssssssssssssss.sssssssss..ssssss...s [ 81%]
ssssssssss.sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 84%]
ssssssssssssssssssssssssssssssssssss.s.................................. [ 87%]
.............s..................................s..........s............ [ 90%]
......                                                                   [ 90%]
test/with_dummyserver/test_no_ssl.py ..                                  [ 90%]
test/with_dummyserver/test_poolmanager.py .............................. [ 92%]
.................                                                        [ 93%]
test/with_dummyserver/test_proxy_poolmanager.py ....s................... [ 94%]
.................                                                        [ 94%]
test/with_dummyserver/test_socketlevel.py .............................. [ 96%]
............sss......s......................................s.s.s....... [ 99%]
..............                                                           [100%]

=============================== warnings summary ===============================
test/contrib/test_pyopenssl.py: 6 warnings
test/with_dummyserver/test_https.py: 20 warnings
test/with_dummyserver/test_no_ssl.py: 1 warning
test/with_dummyserver/test_proxy_poolmanager.py: 16 warnings
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_urllib3/build/dummyserver/server.py:173:
 DeprecationWarning: ssl.PROTOCOL_TLS is deprecated
    ctx = ssl.SSLContext(ssl_version)

test/contrib/test_pyopenssl.py::TestHTTPS::test_alpn_default
test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_alpn_default
test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_alpn_default
test/with_dummyserver/test_https.py::TestHTTPS::test_alpn_default
test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_alpn_default
test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_alpn_default
test/with_dummyserver/test_socketlevel.py::TestALPN::test_alpn_protocol_in_first_request_packet
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_urllib3/build/test/__init__.py:97: 
DeprecationWarning: ssl.PROTOCOL_TLS is deprecated
    ctx = ctx_cls(protocol=ssl_.PROTOCOL_TLS)  # type: ignore[misc, 
attr-defined]

test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_simple
test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_simple
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_urllib3/build/dummyserver/server.py:173:
 DeprecationWarning: ssl.PROTOCOL_TLSv1 is deprecated
    ctx = ssl.SSLContext(ssl_version)

test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_simple
test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_simple
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_urllib3/build/dummyserver/server.py:173:
 DeprecationWarning: ssl.PROTOCOL_TLSv1_1 is deprecated
    ctx = ssl.SSLContext(ssl_version)

test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_simple
test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_simple
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_urllib3/build/dummyserver/server.py:173:
 DeprecationWarning: ssl.PROTOCOL_TLSv1_2 is deprecated
    ctx = ssl.SSLContext(ssl_version)

test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_server_hostname
  /usr/lib/python3/dist-packages/_pytest/python.py:159: ResourceWarning: 
unclosed <socket.socket fd=16, family=2, type=1, proto=6, laddr=('127.0.0.1', 
35758), raddr=('127.0.0.1', 36487)>
    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.

test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_server_hostname
  /usr/lib/python3/dist-packages/_pytest/python.py:159: ResourceWarning: 
unclosed <socket.socket fd=16, family=2, type=1, proto=6, laddr=('127.0.0.1', 
57270), raddr=('127.0.0.1', 45869)>
    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.

test/contrib/test_pyopenssl.py: 14 warnings
test/with_dummyserver/test_socketlevel.py: 16 warnings
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_urllib3/build/test/with_dummyserver/test_socketlevel.py:160:
 DeprecationWarning: ssl.PROTOCOL_TLS is deprecated
    context = ssl.SSLContext(ssl_version)

test/contrib/test_socks.py: 17 warnings
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_urllib3/build/dummyserver/server.py:133:
 NoIPv6Warning: No IPv6 support. Falling back to IPv4.
    warnings.warn("No IPv6 support. Falling back to IPv4.", NoIPv6Warning)

test/contrib/test_socks.py::TestSOCKSWithTLS::test_basic_request
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_urllib3/build/test/contrib/test_socks.py:747:
 DeprecationWarning: ssl.PROTOCOL_TLS is deprecated
    context = better_ssl.SSLContext(ssl.PROTOCOL_SSLv23)  # type: ignore[misc]

test/test_ssl.py::TestSSL::test_create_urllib3_context_ssl_version_and_ssl_min_max_version_no_error[kwargs0]
test/test_ssl.py::TestSSL::test_create_urllib3_context_ssl_version_and_ssl_min_max_version_no_error[kwargs1]
test/test_ssl.py::TestSSL::test_create_urllib3_context_ssl_version_and_ssl_min_max_version_no_error[kwargs2]
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_urllib3/build/urllib3/util/ssl_.py:290: 
DeprecationWarning: ssl.TLSVersion.TLSv1 is deprecated
    context.minimum_version = ssl_minimum_version

test/test_ssl.py::TestSSL::test_create_urllib3_context_ssl_version_and_ssl_min_max_version_no_error[kwargs0]
test/test_ssl.py::TestSSL::test_create_urllib3_context_ssl_version_and_ssl_min_max_version_no_error[kwargs1]
test/test_ssl.py::TestSSL::test_create_urllib3_context_ssl_version_and_ssl_min_max_version_no_error[kwargs2]
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_urllib3/build/urllib3/util/ssl_.py:295: 
DeprecationWarning: ssl.TLSVersion.TLSv1 is deprecated
    context.maximum_version = ssl_maximum_version

test/test_ssltransport.py::SingleTLSLayerTestCase::test_unwrap_existing_socket
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_urllib3/build/dummyserver/server.py:146:
 ResourceWarning: unclosed <ssl.SSLSocket fd=18, family=10, type=1, proto=0, 
laddr=('::1', 46097, 0, 0), raddr=('::1', 60200, 0, 0)>
    self.socket_handler(sock)
  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.

test/test_ssltransport.py::SingleTLSLayerTestCase::test_unwrap_existing_socket
  /usr/lib/python3/dist-packages/_pytest/python.py:159: ResourceWarning: 
unclosed <socket.socket fd=19, family=10, type=1, proto=6, laddr=('::1', 60200, 
0, 0), raddr=('::1', 46097, 0, 0)>
    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.

test/test_ssltransport.py::SingleTLSLayerTestCase::test_ssl_object_attributes
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_urllib3/build/urllib3/util/ssltransport.py:198:
 DeprecationWarning: ssl NPN is deprecated, use ALPN instead
    return self.sslobj.selected_npn_protocol()

test/with_dummyserver/test_connection.py::test_returns_urllib3_HTTPResponse
  /usr/lib/python3/dist-packages/_pytest/python.py:159: ResourceWarning: 
unclosed <socket.socket fd=22, family=10, type=1, proto=6, laddr=('::1', 51022, 
0, 0), raddr=('::1', 36197, 0, 0)>
    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.

test/with_dummyserver/test_connection.py::test_does_not_release_conn
  /usr/lib/python3/dist-packages/_pytest/python.py:159: ResourceWarning: 
unclosed <socket.socket fd=23, family=10, type=1, proto=6, laddr=('::1', 49120, 
0, 0), raddr=('::1', 37545, 0, 0)>
    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.

test/with_dummyserver/test_connection.py::test_double_getresponse
  /usr/lib/python3/dist-packages/_pytest/python.py:159: ResourceWarning: 
unclosed <socket.socket fd=23, family=10, type=1, proto=6, laddr=('::1', 44772, 
0, 0), raddr=('::1', 46689, 0, 0)>
    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.

test/with_dummyserver/test_connectionpool.py::TestConnectionPoolTimeouts::test_timeout_float
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_urllib3/build/urllib3/connectionpool.py:372:
 ResourceWarning: unclosed <socket.socket fd=22, family=10, type=1, proto=6, 
laddr=('::1', 52822, 0, 0), raddr=('::1', 33249, 0, 0)>
    self, url, f"Read timed out. (read timeout={timeout_value})"
  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.

test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_headers_not_modified_by_request[dict-False-True]
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_urllib3/build/test/with_dummyserver/test_connectionpool.py:1072:
 ResourceWarning: unclosed <socket.socket fd=24, family=10, type=1, proto=6, 
laddr=('::1', 41106, 0, 0), raddr=('::1', 43755, 0, 0)>
    conn = pool._get_conn()
  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.

test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_headers_not_modified_by_request[dict-False-True]
  /usr/lib/python3/dist-packages/_pytest/python.py:159: ResourceWarning: 
unclosed <socket.socket fd=24, family=10, type=1, proto=6, laddr=('::1', 41114, 
0, 0), raddr=('::1', 43755, 0, 0)>
    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.

test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_headers_not_modified_by_request[dict-False-False]
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_urllib3/build/test/with_dummyserver/test_connectionpool.py:1072:
 ResourceWarning: unclosed <socket.socket fd=24, family=10, type=1, proto=6, 
laddr=('::1', 41118, 0, 0), raddr=('::1', 43755, 0, 0)>
    conn = pool._get_conn()
  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.

test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_headers_not_modified_by_request[dict-False-False]
  /usr/lib/python3/dist-packages/_pytest/python.py:159: ResourceWarning: 
unclosed <socket.socket fd=25, family=10, type=1, proto=6, laddr=('::1', 41122, 
0, 0), raddr=('::1', 43755, 0, 0)>
    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.

test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_headers_not_modified_by_request[HTTPHeaderDict-False-True]
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_urllib3/build/test/with_dummyserver/test_connectionpool.py:1072:
 ResourceWarning: unclosed <socket.socket fd=24, family=10, type=1, proto=6, 
laddr=('::1', 41158, 0, 0), raddr=('::1', 43755, 0, 0)>
    conn = pool._get_conn()
  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.

test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_headers_not_modified_by_request[HTTPHeaderDict-False-True]
  /usr/lib/python3/dist-packages/_pytest/python.py:159: ResourceWarning: 
unclosed <socket.socket fd=24, family=10, type=1, proto=6, laddr=('::1', 41170, 
0, 0), raddr=('::1', 43755, 0, 0)>
    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.

test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_headers_not_modified_by_request[HTTPHeaderDict-False-False]
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_urllib3/build/test/with_dummyserver/test_connectionpool.py:1072:
 ResourceWarning: unclosed <socket.socket fd=24, family=10, type=1, proto=6, 
laddr=('::1', 41180, 0, 0), raddr=('::1', 43755, 0, 0)>
    conn = pool._get_conn()
  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.

test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_headers_not_modified_by_request[HTTPHeaderDict-False-False]
  /usr/lib/python3/dist-packages/_pytest/python.py:159: ResourceWarning: 
unclosed <socket.socket fd=24, family=10, type=1, proto=6, laddr=('::1', 41192, 
0, 0), raddr=('::1', 43755, 0, 0)>
    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.

test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_request_chunked_is_deprecated
  /usr/lib/python3/dist-packages/_pytest/python.py:159: ResourceWarning: 
unclosed <socket.socket fd=24, family=10, type=1, proto=6, laddr=('::1', 41194, 
0, 0), raddr=('::1', 43755, 0, 0)>
    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.

test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_server_hostname
  /usr/lib/python3/dist-packages/_pytest/python.py:159: ResourceWarning: 
unclosed <ssl.SSLSocket fd=24, family=2, type=1, proto=6, laddr=('127.0.0.1', 
45474), raddr=('127.0.0.1', 45889)>
    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.

test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_server_hostname
  /usr/lib/python3/dist-packages/_pytest/python.py:159: ResourceWarning: 
unclosed <ssl.SSLSocket fd=24, family=2, type=1, proto=6, laddr=('127.0.0.1', 
54474), raddr=('127.0.0.1', 33625)>
    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.

test/with_dummyserver/test_socketlevel.py::TestClientCerts::test_client_cert_with_string_password
test/with_dummyserver/test_socketlevel.py::TestClientCerts::test_client_cert_with_bytes_password
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_urllib3/build/test/with_dummyserver/test_socketlevel.py:370:
 DeprecationWarning: ssl.PROTOCOL_TLS is deprecated
    ssl_context = ssl_.SSLContext(ssl_.PROTOCOL_SSLv23)

test/with_dummyserver/test_socketlevel.py::TestClientCerts::test_load_keyfile_with_invalid_password
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_urllib3/build/test/with_dummyserver/test_socketlevel.py:390:
 DeprecationWarning: ssl.PROTOCOL_TLS is deprecated
    context = ssl_.SSLContext(ssl_.PROTOCOL_SSLv23)

test/with_dummyserver/test_socketlevel.py::TestClientCerts::test_load_invalid_cert_file
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_urllib3/build/test/with_dummyserver/test_socketlevel.py:403:
 DeprecationWarning: ssl.PROTOCOL_TLS is deprecated
    context = ssl_.SSLContext(ssl_.PROTOCOL_SSLv23)

test/with_dummyserver/test_socketlevel.py::TestSSL::test_ssl_dont_load_default_certs_when_given
  /usr/lib/python3.12/unittest/mock.py:2195: ResourceWarning: unclosed 
<socket.socket fd=25, family=10, type=1, proto=6, laddr=('::1', 55614, 0, 0), 
raddr=('::1', 38679, 0, 0)>
    def __init__(self, name, parent):
  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.

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
== 1699 passed, 563 skipped, 45 deselected, 135 warnings in 235.96s (0:03:55) ==
sys:1: ResourceWarning: unclosed <socket.socket fd=28, family=10, type=1, 
proto=6, laddr=('::1', 45228, 0, 0), raddr=('::1', 43455, 0, 0)>
ResourceWarning: Enable tracemalloc to get the object allocation traceback
sys:1: ResourceWarning: unclosed <socket.socket fd=25, family=10, type=1, 
proto=6, laddr=('::1', 55388, 0, 0), raddr=('::1', 38433, 0, 0)>
ResourceWarning: Enable tracemalloc to get the object allocation traceback
sys:1: ResourceWarning: unclosed <socket.socket fd=31, family=10, type=1, 
proto=6, laddr=('::1', 59190, 0, 0), raddr=('::1', 41371, 0, 0)>
ResourceWarning: Enable tracemalloc to get the object allocation traceback
sys:1: ResourceWarning: unclosed <socket.socket fd=34, family=10, type=1, 
proto=6, laddr=('::1', 37904, 0, 0), raddr=('::1', 34169, 0, 0)>
ResourceWarning: Enable tracemalloc to get the object allocation traceback
dh_auto_test: error: pybuild --test -i python{version} -p "3.13 3.12" returned 
exit code 13
make: *** [debian/rules:11: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2024-09-19T09:29:32Z


If required, the full build log is available here (for the next 30 days):
https://debusine.debian.net/artifact/790981/

This bug has been filed at "normal" severity, as we haven't started the
transition to add 3.13 as a supported version, yet. This will be raised to RC
as soon as that happens, hopefully well before trixie.

Thanks,

Stefano

Reply via email to