make[1]: Entering directory '/build/reproducible-path/requests-2.32.3+dfsg/tests/certs/valid/server'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_
make[1]: Nothing to be done for 'all'.
Makefile:16: update target 'clean' due to: target is .PHONY
rm -f server.*
make[1]: Leaving directory '/build/reproducible-path/requests-2.32.3+dfsg/tests/certs/valid/server'
I: pybuild base:311: cd /build/reproducible-path/requests-2.32.3+dfsg/.pybuild/cpython3_3.13_requests/build; python3.13 -m pytest tests -k "not test_use_proxy_from_environment and not TestGetEnvironProxies and not test_mixed_case_scheme_acceptable and
============================= test session starts ==============================string or bytes object in the near future to avoid problems.
platform linux -- Python 3.13.3, pytest-8.3.5, pluggy-1.5.0
rootdir: /build/reproducible-path/requests-2.32.3+dfsg/.pybuild/cpython3_3.13_requests/build
configfile: pyproject.toml
plugins: httpbin-2.1.0, typeguard-4.4.2, mock-3.14.0
collected 606 items / 167 deselected / 439 selected
tests/test_adapters.py . [ 0%]
tests/test_help.py ... [ 0%]
tests/test_hooks.py ... [ 1%]
tests/test_lowlevel.py ........... [ 4%]
tests/test_packages.py ... [ 4%]
tests/test_requests.py ................................................. [ 15%]
.......s................................................................ [ 32%]
........................................................................ [ 48%]
..........FFFF. [ 52%]
tests/test_structures.py .................... [ 56%]
tests/test_testserver.py ......s.... [ 59%]
tests/test_utils.py ..s................................................. [ 71%]
........................................................................ [ 87%]
...........................................ssssssssssss [100%]
=================================== FAILURES ===================================
_ TestPreparingURLs.test_different_connection_pool_for_tls_settings_verify_True _
self = <tests.test_requests.TestPreparingURLs object at 0x7f388c582710>
def test_different_connection_pool_for_tls_settings_verify_True(self):
def response_handler(sock):
consume_socket_content(sock, timeout=0.5)
sock.send(
b"HTTP/1.1 200 OK\r\n"
b"Content-Length: 18\r\n\r\n"
b'\xff\xfe{\x00"\x00K0"\x00=\x00"\x00\xab0"\x00\r\n'
)
s = requests.Session()
close_server = threading.Event()
server = TLSServer(handler=response_handler,
wait_to_close_event=close_server,
requests_to_handle=3,
cert_chain="tests/certs/expired/server/server.pem",
keyfile="tests/certs/expired/server/server.key",
)
tests/test_requests.py:2845:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <TLSServer(Thread-12, initial)>
def __init__(
self,
*,
handler=None,
host="localhost",
port=0,
requests_to_handle=1,
wait_to_close_event=None,
cert_chain=None,
keyfile=None,
mutual_tls=False,
cacert=None,
):
super().__init__(
handler=handler,
host=host,
port=port,
requests_to_handle=requests_to_handle,
wait_to_close_event=wait_to_close_event,
)
self.cert_chain = cert_chain
self.keyfile = keyfile
self.ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
self.ssl_context.load_cert_chain(self.cert_chain, keyfile=self.keyfile)E FileNotFoundError: [Errno 2] No such file or directory
tests/testserver/server.py:162: FileNotFoundError
_ TestPreparingURLs.test_different_connection_pool_for_tls_settings_verify_bundle_expired_cert _
self = <tests.test_requests.TestPreparingURLs object at 0x7f388c582850>
def test_different_connection_pool_for_tls_settings_verify_bundle_expired_cert(
self,
):
def response_handler(sock):
consume_socket_content(sock, timeout=0.5)
sock.send(
b"HTTP/1.1 200 OK\r\n"
b"Content-Length: 18\r\n\r\n"
b'\xff\xfe{\x00"\x00K0"\x00=\x00"\x00\xab0"\x00\r\n'
)
s = requests.Session()
close_server = threading.Event()
server = TLSServer(handler=response_handler,
wait_to_close_event=close_server,
requests_to_handle=3,
cert_chain="tests/certs/expired/server/server.pem",
keyfile="tests/certs/expired/server/server.key",
)
tests/test_requests.py:2878:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <TLSServer(Thread-13, initial)>
def __init__(
self,
*,
handler=None,
host="localhost",
port=0,
requests_to_handle=1,
wait_to_close_event=None,
cert_chain=None,
keyfile=None,
mutual_tls=False,
cacert=None,
):
super().__init__(
handler=handler,
host=host,
port=port,
requests_to_handle=requests_to_handle,
wait_to_close_event=wait_to_close_event,
)
self.cert_chain = cert_chain
self.keyfile = keyfile
self.ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
self.ssl_context.load_cert_chain(self.cert_chain, keyfile=self.keyfile)E FileNotFoundError: [Errno 2] No such file or directory
tests/testserver/server.py:162: FileNotFoundError
_ TestPreparingURLs.test_different_connection_pool_for_tls_settings_verify_bundle_unexpired_cert _
self = <tests.test_requests.TestPreparingURLs object at 0x7f388c582a30>
def test_different_connection_pool_for_tls_settings_verify_bundle_unexpired_cert(
self,
):
def response_handler(sock):
consume_socket_content(sock, timeout=0.5)
sock.send(
b"HTTP/1.1 200 OK\r\n"
b"Content-Length: 18\r\n\r\n"
b'\xff\xfe{\x00"\x00K0"\x00=\x00"\x00\xab0"\x00\r\n'
)
s = requests.Session()
close_server = threading.Event()
server = TLSServer(handler=response_handler,
wait_to_close_event=close_server,
requests_to_handle=3,
cert_chain="tests/certs/valid/server/server.pem",
keyfile="tests/certs/valid/server/server.key",
)
tests/test_requests.py:2911:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <TLSServer(Thread-14, initial)>
def __init__(
self,
*,
handler=None,
host="localhost",
port=0,
requests_to_handle=1,
wait_to_close_event=None,
cert_chain=None,
keyfile=None,
mutual_tls=False,
cacert=None,
):
super().__init__(
handler=handler,
host=host,
port=port,
requests_to_handle=requests_to_handle,
wait_to_close_event=wait_to_close_event,
)
self.cert_chain = cert_chain
self.keyfile = keyfile
self.ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
self.ssl_context.load_cert_chain(self.cert_chain, keyfile=self.keyfile)E FileNotFoundError: [Errno 2] No such file or directory
tests/testserver/server.py:162: FileNotFoundError
______ TestPreparingURLs.test_different_connection_pool_for_mtls_settings ______
self = <tests.test_requests.TestPreparingURLs object at 0x7f388c5827b0>
def test_different_connection_pool_for_mtls_settings(self):
client_cert = None
def response_handler(sock):
nonlocal client_cert
client_cert = sock.getpeercert()
consume_socket_content(sock, timeout=0.5)
sock.send(
b"HTTP/1.1 200 OK\r\n"
b"Content-Length: 18\r\n\r\n"
b'\xff\xfe{\x00"\x00K0"\x00=\x00"\x00\xab0"\x00\r\n'
)
s = requests.Session()
close_server = threading.Event()
server = TLSServer(handler=response_handler,
wait_to_close_event=close_server,
requests_to_handle=2,
cert_chain="tests/certs/expired/server/server.pem",
keyfile="tests/certs/expired/server/server.key",
mutual_tls=True,
cacert="tests/certs/expired/ca/ca.crt",
)
tests/test_requests.py:2945:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <TLSServer(Thread-15, initial)>
def __init__(
self,
*,
handler=None,
host="localhost",
port=0,
requests_to_handle=1,
wait_to_close_event=None,
cert_chain=None,
keyfile=None,
mutual_tls=False,
cacert=None,
):
super().__init__(
handler=handler,
host=host,
port=port,
requests_to_handle=requests_to_handle,
wait_to_close_event=wait_to_close_event,
)
self.cert_chain = cert_chain
self.keyfile = keyfile
self.ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
self.ssl_context.load_cert_chain(self.cert_chain, keyfile=self.keyfile)E FileNotFoundError: [Errno 2] No such file or directory
tests/testserver/server.py:162: FileNotFoundError =============================== warnings summary ===============================
tests/test_requests.py::TestRequests::test_set_basicauth[42-42]
/build/reproducible-path/requests-2.32.3+dfsg/.pybuild/cpython3_3.13_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
warnings.warn(to a string or bytes object in the near future to avoid problems.
tests/test_requests.py::TestRequests::test_set_basicauth[42-42]
/build/reproducible-path/requests-2.32.3+dfsg/.pybuild/cpython3_3.13_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'>)
warnings.warn(string or bytes object in the near future to avoid problems.
tests/test_requests.py::TestRequests::test_set_basicauth[None-None]
/build/reproducible-path/requests-2.32.3+dfsg/.pybuild/cpython3_3.13_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
warnings.warn(NoneType'>) to a string or bytes object in the near future to avoid problems.
tests/test_requests.py::TestRequests::test_set_basicauth[None-None]
/build/reproducible-path/requests-2.32.3+dfsg/.pybuild/cpython3_3.13_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 '
warnings.warn((This warning should only appear once.)
tests/test_testserver.py::TestTestServer::test_server_closes
/usr/lib/python3/dist-packages/_pytest/python.py:159: ResourceWarning: unclosed <socket.socket fd=13, family=2, type=1, proto=0, laddr=('0.0.0.0', 56392)>
result = testfunction(**testargs)
Enable tracemalloc to get traceback where the object was allocated.
See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
tests/test_testserver.py::TestTestServer::test_basic_waiting_server
/usr/lib/python3/dist-packages/_pytest/python.py:159: ResourceWarning: unclosed <socket.socket fd=14, family=2, type=1, proto=0, laddr=('127.0.0.1', 50246)>
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
/build/reproducible-path/requests-2.32.3+dfsg/.pybuild/cpython3_3.13_requests/build/requests/utils.py:494: DeprecationWarning: In requests 3.0, get_encodings_from_content will be removed. For more information, please see the discussion on issue #2266.
warnings.warn(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_
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================
FAILED tests/test_requests.py::TestPreparingURLs::test_different_connection_pool_for_tls_settings_verify_True
FAILED tests/test_requests.py::TestPreparingURLs::test_different_connection_pool_for_tls_settings_verify_bundle_expired_cert
FAILED tests/test_requests.py::TestPreparingURLs::test_different_connection_pool_for_tls_settings_verify_bundle_unexpired_cert
FAILED tests/test_requests.py::TestPreparingURLs::test_different_connection_pool_for_mtls_settings
=== 4 failed, 420 passed, 15 skipped, 167 deselected, 12 warnings in 26.61s ====
E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /build/reproducible-path/requests-2.32.3+dfsg/.pybuild/cpython3_3.13_requests/build; python3.13 -m pytest tests -k "not test_use_proxy_from_environment and not
dh_auto_test: error: pybuild --test -i python{version} -p 3.13 returned exit code 13
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 480 |
Nodes: | 16 (2 / 14) |
Uptime: | 253:13:22 |
Calls: | 9,532 |
Files: | 13,650 |
Messages: | 6,138,097 |