Skip to content

0.13.3: pytest based test suite is failing #340

@kloczek

Description

@kloczek

I know that I have instaled a lot of pytest extensions which may produce sometimes false positive results however I think that some of those reported erros are about missing some other steps in testing procedure.
Some of those errors/warnings may actually point on som eerrors.
Full pytest log in attachment and here is just summary info
python-httpcore.txt

+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-httpcore-0.13.3-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-httpcore-0.13.3-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/python3 -Bm pytest -ra
============================= test session starts ==============================
platform linux -- Python 3.8.9, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
rootdir: /home/tkloczko/rpmbuild/BUILD/httpcore-0.13.3, configfile: setup.cfg
plugins: forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, expect-1.1.0, cov-2.11.1, httpbin-1.0.0, xdist-2.2.1, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, pyfakefs-4.4.0, freezegun-0.4.2, cases-3.4.6, case-1.5.3, isort-1.3.0, aspectlib-1.5.2, mock-3.6.0, asyncio-0.15.1, toolbox-0.5, xprocess-0.17.1, flaky-3.7.0, requests-mock-1.9.2, aiohttp-0.3.0, checkdocs-2.7.0, hypothesis-6.12.1
collected 140 items

. .                                                                      [  0%]
tests/test_exported_members.py .                                         [  1%]
tests/test_map_exceptions.py ...                                         [  3%]
tests/test_threadsafety.py FF                                            [  5%]
tests/test_utils.py ...                                                  [  7%]
tests/async_tests/test_connection_pool.py ....                           [ 10%]
tests/async_tests/test_http11.py ......                                  [ 14%]
tests/async_tests/test_http2.py ...                                      [ 16%]
tests/async_tests/test_interfaces.py .FFFF.FFFFFFFFFFFEEEEEEEEEEEEFFEEEE [ 41%]
FFFFFFFF.FFFFFFFFFEFFFFFF                                                [ 59%]
tests/async_tests/test_retries.py FFF                                    [ 61%]
tests/backend_tests/test_asyncio.py EE                                   [ 63%]
tests/sync_tests/test_connection_pool.py ....                            [ 66%]
tests/sync_tests/test_http11.py .....                                    [ 69%]
tests/sync_tests/test_http2.py FFF                                       [ 71%]
tests/sync_tests/test_interfaces.py .FF.FFFFFEEEEEEEEEFEEEEFFFFFFFFFE... [ 97%]
                                                                         [ 97%]
tests/sync_tests/test_retries.py FFF                                     [100%]

==================================== ERRORS ====================================

[..]

=========================== short test summary info ============================
ERROR tests/async_tests/test_interfaces.py::test_http_proxy[auto-DEFAULT] - F...
ERROR tests/async_tests/test_interfaces.py::test_http_proxy[auto-FORWARD_ONLY]
ERROR tests/async_tests/test_interfaces.py::test_http_proxy[auto-TUNNEL_ONLY]
ERROR tests/async_tests/test_interfaces.py::test_http_proxy[anyio-DEFAULT] - ...
ERROR tests/async_tests/test_interfaces.py::test_http_proxy[anyio-FORWARD_ONLY]
ERROR tests/async_tests/test_interfaces.py::test_http_proxy[anyio-TUNNEL_ONLY]
ERROR tests/async_tests/test_interfaces.py::test_proxy_socket_does_not_leak_when_the_connection_hasnt_been_added_to_pool[http-80-DEFAULT]
ERROR tests/async_tests/test_interfaces.py::test_proxy_socket_does_not_leak_when_the_connection_hasnt_been_added_to_pool[http-80-FORWARD_ONLY]
ERROR tests/async_tests/test_interfaces.py::test_proxy_socket_does_not_leak_when_the_connection_hasnt_been_added_to_pool[http-80-TUNNEL_ONLY]
ERROR tests/async_tests/test_interfaces.py::test_proxy_socket_does_not_leak_when_the_connection_hasnt_been_added_to_pool[https-443-DEFAULT]
ERROR tests/async_tests/test_interfaces.py::test_proxy_socket_does_not_leak_when_the_connection_hasnt_been_added_to_pool[https-443-FORWARD_ONLY]
ERROR tests/async_tests/test_interfaces.py::test_proxy_socket_does_not_leak_when_the_connection_hasnt_been_added_to_pool[https-443-TUNNEL_ONLY]
ERROR tests/async_tests/test_interfaces.py::test_proxy_https_requests[False-DEFAULT]
ERROR tests/async_tests/test_interfaces.py::test_proxy_https_requests[False-TUNNEL_ONLY]
ERROR tests/async_tests/test_interfaces.py::test_proxy_https_requests[True-DEFAULT]
ERROR tests/async_tests/test_interfaces.py::test_proxy_https_requests[True-TUNNEL_ONLY]
ERROR tests/async_tests/test_interfaces.py::test_broken_socket_detection_many_open_files[anyio]
ERROR tests/backend_tests/test_asyncio.py::TestSocketStream::TestIsReadable::test_returns_true_when_transport_has_no_socket
ERROR tests/backend_tests/test_asyncio.py::TestSocketStream::TestIsReadable::test_returns_true_when_socket_is_readable
ERROR tests/sync_tests/test_interfaces.py::test_http_proxy[sync-DEFAULT] - Fi...
ERROR tests/sync_tests/test_interfaces.py::test_http_proxy[sync-FORWARD_ONLY]
ERROR tests/sync_tests/test_interfaces.py::test_http_proxy[sync-TUNNEL_ONLY]
ERROR tests/sync_tests/test_interfaces.py::test_proxy_socket_does_not_leak_when_the_connection_hasnt_been_added_to_pool[http-80-DEFAULT]
ERROR tests/sync_tests/test_interfaces.py::test_proxy_socket_does_not_leak_when_the_connection_hasnt_been_added_to_pool[http-80-FORWARD_ONLY]
ERROR tests/sync_tests/test_interfaces.py::test_proxy_socket_does_not_leak_when_the_connection_hasnt_been_added_to_pool[http-80-TUNNEL_ONLY]
ERROR tests/sync_tests/test_interfaces.py::test_proxy_socket_does_not_leak_when_the_connection_hasnt_been_added_to_pool[https-443-DEFAULT]
ERROR tests/sync_tests/test_interfaces.py::test_proxy_socket_does_not_leak_when_the_connection_hasnt_been_added_to_pool[https-443-FORWARD_ONLY]
ERROR tests/sync_tests/test_interfaces.py::test_proxy_socket_does_not_leak_when_the_connection_hasnt_been_added_to_pool[https-443-TUNNEL_ONLY]
ERROR tests/sync_tests/test_interfaces.py::test_proxy_https_requests[False-DEFAULT]
ERROR tests/sync_tests/test_interfaces.py::test_proxy_https_requests[False-TUNNEL_ONLY]
ERROR tests/sync_tests/test_interfaces.py::test_proxy_https_requests[True-DEFAULT]
ERROR tests/sync_tests/test_interfaces.py::test_proxy_https_requests[True-TUNNEL_ONLY]
ERROR tests/sync_tests/test_interfaces.py::test_broken_socket_detection_many_open_files[sync]
FAILED tests/test_threadsafety.py::test_threadsafe_basic[h11] - httpcore.Conn...
FAILED tests/test_threadsafety.py::test_threadsafe_basic[h2] - httpcore.Conne...
FAILED tests/async_tests/test_interfaces.py::test_http_request[auto] - httpco...
FAILED tests/async_tests/test_interfaces.py::test_http_request[anyio] - Modul...
FAILED tests/async_tests/test_interfaces.py::test_https_request[auto] - httpc...
FAILED tests/async_tests/test_interfaces.py::test_https_request[anyio] - Modu...
FAILED tests/async_tests/test_interfaces.py::test_request_unsupported_protocol[anyio]
FAILED tests/async_tests/test_interfaces.py::test_http2_request[auto] - httpc...
FAILED tests/async_tests/test_interfaces.py::test_http2_request[anyio] - Modu...
FAILED tests/async_tests/test_interfaces.py::test_closing_http_request[auto]
FAILED tests/async_tests/test_interfaces.py::test_closing_http_request[anyio]
FAILED tests/async_tests/test_interfaces.py::test_http_request_reuse_connection[auto]
FAILED tests/async_tests/test_interfaces.py::test_http_request_reuse_connection[anyio]
FAILED tests/async_tests/test_interfaces.py::test_https_request_reuse_connection[auto]
FAILED tests/async_tests/test_interfaces.py::test_https_request_reuse_connection[anyio]
FAILED tests/async_tests/test_interfaces.py::test_http_request_cannot_reuse_dropped_connection[auto]
FAILED tests/async_tests/test_interfaces.py::test_http_request_cannot_reuse_dropped_connection[anyio]
FAILED tests/async_tests/test_interfaces.py::test_http_request_local_address[auto]
FAILED tests/async_tests/test_interfaces.py::test_http_request_local_address[anyio]
FAILED tests/async_tests/test_interfaces.py::test_connection_pool_get_connection_info[auto-False-60.0-expected_during_active0-expected_during_idle0]
FAILED tests/async_tests/test_interfaces.py::test_connection_pool_get_connection_info[auto-True-60.0-expected_during_active1-expected_during_idle1]
FAILED tests/async_tests/test_interfaces.py::test_connection_pool_get_connection_info[auto-False-0.0-expected_during_active2-expected_during_idle2]
FAILED tests/async_tests/test_interfaces.py::test_connection_pool_get_connection_info[auto-True-0.0-expected_during_active3-expected_during_idle3]
FAILED tests/async_tests/test_interfaces.py::test_connection_pool_get_connection_info[anyio-False-60.0-expected_during_active0-expected_during_idle0]
FAILED tests/async_tests/test_interfaces.py::test_connection_pool_get_connection_info[anyio-True-60.0-expected_during_active1-expected_during_idle1]
FAILED tests/async_tests/test_interfaces.py::test_connection_pool_get_connection_info[anyio-False-0.0-expected_during_active2-expected_during_idle2]
FAILED tests/async_tests/test_interfaces.py::test_connection_pool_get_connection_info[anyio-True-0.0-expected_during_active3-expected_during_idle3]
FAILED tests/async_tests/test_interfaces.py::test_http_request_unix_domain_socket[anyio]
FAILED tests/async_tests/test_interfaces.py::test_max_keepalive_connections_handled_correctly[auto-4-1]
FAILED tests/async_tests/test_interfaces.py::test_max_keepalive_connections_handled_correctly[auto-4-3]
FAILED tests/async_tests/test_interfaces.py::test_max_keepalive_connections_handled_correctly[auto-4-5]
FAILED tests/async_tests/test_interfaces.py::test_max_keepalive_connections_handled_correctly[anyio-4-1]
FAILED tests/async_tests/test_interfaces.py::test_max_keepalive_connections_handled_correctly[anyio-4-3]
FAILED tests/async_tests/test_interfaces.py::test_max_keepalive_connections_handled_correctly[anyio-4-5]
FAILED tests/async_tests/test_interfaces.py::test_explicit_backend_name - htt...
FAILED tests/async_tests/test_interfaces.py::test_broken_socket_detection_many_open_files[auto]
FAILED tests/async_tests/test_interfaces.py::test_cannot_connect_tcp[auto-connection-refused]
FAILED tests/async_tests/test_interfaces.py::test_cannot_connect_tcp[auto-dns-resolution-failed]
FAILED tests/async_tests/test_interfaces.py::test_cannot_connect_tcp[anyio-connection-refused]
FAILED tests/async_tests/test_interfaces.py::test_cannot_connect_tcp[anyio-dns-resolution-failed]
FAILED tests/async_tests/test_interfaces.py::test_cannot_connect_uds[auto] - ...
FAILED tests/async_tests/test_interfaces.py::test_cannot_connect_uds[anyio]
FAILED tests/async_tests/test_retries.py::test_no_retries - OSError: [Errno 2...
FAILED tests/async_tests/test_retries.py::test_retries_enabled - OSError: [Er...
FAILED tests/async_tests/test_retries.py::test_retries_exceeded - OSError: [E...
FAILED tests/sync_tests/test_http2.py::test_get_request - OSError: [Errno 24]...
FAILED tests/sync_tests/test_http2.py::test_post_request - OSError: [Errno 24...
FAILED tests/sync_tests/test_http2.py::test_request_with_missing_host_header
FAILED tests/sync_tests/test_interfaces.py::test_http_request[sync] - httpcor...
FAILED tests/sync_tests/test_interfaces.py::test_https_request[sync] - httpco...
FAILED tests/sync_tests/test_interfaces.py::test_http2_request[sync] - httpco...
FAILED tests/sync_tests/test_interfaces.py::test_closing_http_request[sync]
FAILED tests/sync_tests/test_interfaces.py::test_http_request_reuse_connection[sync]
FAILED tests/sync_tests/test_interfaces.py::test_https_request_reuse_connection[sync]
FAILED tests/sync_tests/test_interfaces.py::test_http_request_cannot_reuse_dropped_connection[sync]
FAILED tests/sync_tests/test_interfaces.py::test_http_request_local_address[sync]
FAILED tests/sync_tests/test_interfaces.py::test_connection_pool_get_connection_info[sync-False-60.0-expected_during_active0-expected_during_idle0]
FAILED tests/sync_tests/test_interfaces.py::test_connection_pool_get_connection_info[sync-True-60.0-expected_during_active1-expected_during_idle1]
FAILED tests/sync_tests/test_interfaces.py::test_connection_pool_get_connection_info[sync-False-0.0-expected_during_active2-expected_during_idle2]
FAILED tests/sync_tests/test_interfaces.py::test_connection_pool_get_connection_info[sync-True-0.0-expected_during_active3-expected_during_idle3]
FAILED tests/sync_tests/test_interfaces.py::test_http_request_unix_domain_socket[sync]
FAILED tests/sync_tests/test_interfaces.py::test_max_keepalive_connections_handled_correctly[sync-4-1]
FAILED tests/sync_tests/test_interfaces.py::test_max_keepalive_connections_handled_correctly[sync-4-3]
FAILED tests/sync_tests/test_interfaces.py::test_max_keepalive_connections_handled_correctly[sync-4-5]
FAILED tests/sync_tests/test_interfaces.py::test_explicit_backend_name - http...
FAILED tests/sync_tests/test_retries.py::test_no_retries - httpcore.ConnectEr...
FAILED tests/sync_tests/test_retries.py::test_retries_enabled - httpcore.Conn...
FAILED tests/sync_tests/test_retries.py::test_retries_exceeded - httpcore.Con...
====== 68 failed, 38 passed, 34 warnings, 33 errors in 269.01s (0:04:29) =======

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions