* Package: dev-python/httpcore-0.14.5 * Repository: gentoo * Maintainer: python@gentoo.org * Upstream: https://github.com/encode/httpcore/issues * USE: elibc_glibc hppa kernel_linux python_targets_python3_9 test userland_GNU * FEATURES: network-sandbox preserve-libs sandbox test userpriv usersandbox >>> Unpacking source... >>> Unpacking httpcore-0.14.5.tar.gz to /var/tmp/portage/dev-python/httpcore-0.14.5/work >>> Source unpacked in /var/tmp/portage/dev-python/httpcore-0.14.5/work >>> Preparing source in /var/tmp/portage/dev-python/httpcore-0.14.5/work/httpcore-0.14.5 ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-python/httpcore-0.14.5/work/httpcore-0.14.5 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-python/httpcore-0.14.5/work/httpcore-0.14.5 ... * python3_9: running distutils-r1_run_phase distutils-r1_python_compile python3.9 setup.py build -j 5 running build running build_py creating /var/tmp/portage/dev-python/httpcore-0.14.5/work/httpcore-0.14.5-python3_9/lib/httpcore copying httpcore/_synchronization.py -> /var/tmp/portage/dev-python/httpcore-0.14.5/work/httpcore-0.14.5-python3_9/lib/httpcore copying httpcore/_api.py -> /var/tmp/portage/dev-python/httpcore-0.14.5/work/httpcore-0.14.5-python3_9/lib/httpcore copying httpcore/_ssl.py -> /var/tmp/portage/dev-python/httpcore-0.14.5/work/httpcore-0.14.5-python3_9/lib/httpcore copying httpcore/_trace.py -> /var/tmp/portage/dev-python/httpcore-0.14.5/work/httpcore-0.14.5-python3_9/lib/httpcore copying httpcore/_models.py -> /var/tmp/portage/dev-python/httpcore-0.14.5/work/httpcore-0.14.5-python3_9/lib/httpcore copying httpcore/_compat.py -> /var/tmp/portage/dev-python/httpcore-0.14.5/work/httpcore-0.14.5-python3_9/lib/httpcore copying httpcore/_exceptions.py -> /var/tmp/portage/dev-python/httpcore-0.14.5/work/httpcore-0.14.5-python3_9/lib/httpcore copying httpcore/__init__.py -> /var/tmp/portage/dev-python/httpcore-0.14.5/work/httpcore-0.14.5-python3_9/lib/httpcore copying httpcore/_utils.py -> /var/tmp/portage/dev-python/httpcore-0.14.5/work/httpcore-0.14.5-python3_9/lib/httpcore creating /var/tmp/portage/dev-python/httpcore-0.14.5/work/httpcore-0.14.5-python3_9/lib/httpcore/_sync copying httpcore/_sync/interfaces.py -> /var/tmp/portage/dev-python/httpcore-0.14.5/work/httpcore-0.14.5-python3_9/lib/httpcore/_sync copying httpcore/_sync/connection_pool.py -> /var/tmp/portage/dev-python/httpcore-0.14.5/work/httpcore-0.14.5-python3_9/lib/httpcore/_sync copying httpcore/_sync/http2.py -> /var/tmp/portage/dev-python/httpcore-0.14.5/work/httpcore-0.14.5-python3_9/lib/httpcore/_sync copying httpcore/_sync/http_proxy.py -> /var/tmp/portage/dev-python/httpcore-0.14.5/work/httpcore-0.14.5-python3_9/lib/httpcore/_sync copying httpcore/_sync/__init__.py -> /var/tmp/portage/dev-python/httpcore-0.14.5/work/httpcore-0.14.5-python3_9/lib/httpcore/_sync copying httpcore/_sync/socks_proxy.py -> /var/tmp/portage/dev-python/httpcore-0.14.5/work/httpcore-0.14.5-python3_9/lib/httpcore/_sync copying httpcore/_sync/http11.py -> /var/tmp/portage/dev-python/httpcore-0.14.5/work/httpcore-0.14.5-python3_9/lib/httpcore/_sync copying httpcore/_sync/connection.py -> /var/tmp/portage/dev-python/httpcore-0.14.5/work/httpcore-0.14.5-python3_9/lib/httpcore/_sync creating /var/tmp/portage/dev-python/httpcore-0.14.5/work/httpcore-0.14.5-python3_9/lib/httpcore/_async copying httpcore/_async/interfaces.py -> /var/tmp/portage/dev-python/httpcore-0.14.5/work/httpcore-0.14.5-python3_9/lib/httpcore/_async copying httpcore/_async/connection_pool.py -> /var/tmp/portage/dev-python/httpcore-0.14.5/work/httpcore-0.14.5-python3_9/lib/httpcore/_async copying httpcore/_async/http2.py -> /var/tmp/portage/dev-python/httpcore-0.14.5/work/httpcore-0.14.5-python3_9/lib/httpcore/_async copying httpcore/_async/http_proxy.py -> /var/tmp/portage/dev-python/httpcore-0.14.5/work/httpcore-0.14.5-python3_9/lib/httpcore/_async copying httpcore/_async/__init__.py -> /var/tmp/portage/dev-python/httpcore-0.14.5/work/httpcore-0.14.5-python3_9/lib/httpcore/_async copying httpcore/_async/socks_proxy.py -> /var/tmp/portage/dev-python/httpcore-0.14.5/work/httpcore-0.14.5-python3_9/lib/httpcore/_async copying httpcore/_async/http11.py -> /var/tmp/portage/dev-python/httpcore-0.14.5/work/httpcore-0.14.5-python3_9/lib/httpcore/_async copying httpcore/_async/connection.py -> /var/tmp/portage/dev-python/httpcore-0.14.5/work/httpcore-0.14.5-python3_9/lib/httpcore/_async creating /var/tmp/portage/dev-python/httpcore-0.14.5/work/httpcore-0.14.5-python3_9/lib/httpcore/backends copying httpcore/backends/trio.py -> /var/tmp/portage/dev-python/httpcore-0.14.5/work/httpcore-0.14.5-python3_9/lib/httpcore/backends copying httpcore/backends/asyncio.py -> /var/tmp/portage/dev-python/httpcore-0.14.5/work/httpcore-0.14.5-python3_9/lib/httpcore/backends copying httpcore/backends/auto.py -> /var/tmp/portage/dev-python/httpcore-0.14.5/work/httpcore-0.14.5-python3_9/lib/httpcore/backends copying httpcore/backends/base.py -> /var/tmp/portage/dev-python/httpcore-0.14.5/work/httpcore-0.14.5-python3_9/lib/httpcore/backends copying httpcore/backends/mock.py -> /var/tmp/portage/dev-python/httpcore-0.14.5/work/httpcore-0.14.5-python3_9/lib/httpcore/backends copying httpcore/backends/__init__.py -> /var/tmp/portage/dev-python/httpcore-0.14.5/work/httpcore-0.14.5-python3_9/lib/httpcore/backends copying httpcore/backends/sync.py -> /var/tmp/portage/dev-python/httpcore-0.14.5/work/httpcore-0.14.5-python3_9/lib/httpcore/backends running egg_info creating httpcore.egg-info writing httpcore.egg-info/PKG-INFO writing dependency_links to httpcore.egg-info/dependency_links.txt writing requirements to httpcore.egg-info/requires.txt writing top-level names to httpcore.egg-info/top_level.txt writing manifest file 'httpcore.egg-info/SOURCES.txt' listing git files failed - pretending there aren't any reading manifest file 'httpcore.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE.md' writing manifest file 'httpcore.egg-info/SOURCES.txt' copying httpcore/py.typed -> /var/tmp/portage/dev-python/httpcore-0.14.5/work/httpcore-0.14.5-python3_9/lib/httpcore warning: build_py: byte-compiling is disabled, skipping. >>> Source compiled. >>> Test phase: dev-python/httpcore-0.14.5 * python3_9: running distutils-r1_run_phase python_test python3.9 -m pytest -vv -ra -l -Wdefault --color=yes -p no:cov -p no:flake8 -p no:flakes -p no:pylint ============================================================================================ test session starts ============================================================================================= platform linux -- Python 3.9.10, pytest-6.2.5, py-1.11.0, pluggy-1.0.0 -- /usr/bin/python3.9 cachedir: .pytest_cache rootdir: /var/tmp/portage/dev-python/httpcore-0.14.5/work/httpcore-0.14.5, configfile: setup.cfg plugins: trio-0.7.0, httpbin-1.0.1, anyio-3.5.0, asyncio-0.17.2, pkgcore-0.12.9 asyncio: mode=legacy collecting ... collected 148 items tests/test_api.py::test_request PASSED [ 0%] tests/test_api.py::test_stream PASSED [ 1%] tests/test_api.py::test_request_with_content PASSED [ 2%] tests/test_models.py::test_url PASSED [ 2%] tests/test_models.py::test_url_with_port PASSED [ 3%] tests/test_models.py::test_url_with_invalid_argument PASSED [ 4%] tests/test_models.py::test_url_cannot_include_unicode_strings PASSED [ 4%] tests/test_models.py::test_request PASSED [ 5%] tests/test_models.py::test_request_with_invalid_method PASSED [ 6%] tests/test_models.py::test_request_with_invalid_url PASSED [ 6%] tests/test_models.py::test_request_with_invalid_headers PASSED [ 7%] tests/test_models.py::test_response PASSED [ 8%] tests/test_models.py::test_response_sync_read PASSED [ 8%] tests/test_models.py::test_response_sync_streaming PASSED [ 9%] tests/test_models.py::test_response_async_read PASSED [ 10%] tests/test_models.py::test_response_async_streaming PASSED [ 10%] tests/_async/test_connection.py::test_http_connection[asyncio] PASSED [ 11%] tests/_async/test_connection.py::test_http_connection[trio] PASSED [ 12%] tests/_async/test_connection.py::test_concurrent_requests_not_available_on_http11_connections[asyncio] PASSED [ 12%] tests/_async/test_connection.py::test_concurrent_requests_not_available_on_http11_connections[trio] PASSED [ 13%] tests/_async/test_connection.py::test_http2_connection[asyncio] PASSED [ 14%] tests/_async/test_connection.py::test_http2_connection[trio] PASSED [ 14%] tests/_async/test_connection.py::test_request_to_incorrect_origin[asyncio] PASSED [ 15%] tests/_async/test_connection.py::test_request_to_incorrect_origin[trio] PASSED [ 16%] tests/_async/test_connection.py::test_connection_retries[asyncio] PASSED [ 16%] tests/_async/test_connection.py::test_connection_retries[trio] PASSED [ 17%] tests/_async/test_connection.py::test_uds_connections[asyncio] PASSED [ 18%] tests/_async/test_connection.py::test_uds_connections[trio] PASSED [ 18%] tests/_async/test_connection_pool.py::test_connection_pool_with_keepalive[asyncio] PASSED [ 19%] tests/_async/test_connection_pool.py::test_connection_pool_with_keepalive[trio] PASSED [ 20%] tests/_async/test_connection_pool.py::test_connection_pool_with_close[asyncio] PASSED [ 20%] tests/_async/test_connection_pool.py::test_connection_pool_with_close[trio] PASSED [ 21%] tests/_async/test_connection_pool.py::test_trace_request[asyncio] PASSED [ 22%] tests/_async/test_connection_pool.py::test_trace_request[trio] PASSED [ 22%] tests/_async/test_connection_pool.py::test_connection_pool_with_http_exception[asyncio] PASSED [ 23%] tests/_async/test_connection_pool.py::test_connection_pool_with_http_exception[trio] PASSED [ 24%] tests/_async/test_connection_pool.py::test_connection_pool_with_connect_exception[asyncio] PASSED [ 25%] tests/_async/test_connection_pool.py::test_connection_pool_with_connect_exception[trio] PASSED [ 25%] tests/_async/test_connection_pool.py::test_connection_pool_with_immediate_expiry[asyncio] FAILED [ 26%] tests/_async/test_connection_pool.py::test_connection_pool_with_immediate_expiry[trio] PASSED [ 27%] tests/_async/test_connection_pool.py::test_connection_pool_with_no_keepalive_connections_allowed[asyncio] PASSED [ 27%] tests/_async/test_connection_pool.py::test_connection_pool_with_no_keepalive_connections_allowed[trio] PASSED [ 28%] tests/_async/test_connection_pool.py::test_connection_pool_concurrency PASSED [ 29%] tests/_async/test_connection_pool.py::test_connection_pool_concurrency_same_domain_closing PASSED [ 29%] tests/_async/test_connection_pool.py::test_connection_pool_concurrency_same_domain_keepalive PASSED [ 30%] tests/_async/test_connection_pool.py::test_unsupported_protocol[asyncio] PASSED [ 31%] tests/_async/test_connection_pool.py::test_unsupported_protocol[trio] PASSED [ 31%] tests/_async/test_http11.py::test_http11_connection[asyncio] PASSED [ 32%] tests/_async/test_http11.py::test_http11_connection[trio] PASSED [ 33%] tests/_async/test_http11.py::test_http11_connection_unread_response[asyncio] PASSED [ 33%] tests/_async/test_http11.py::test_http11_connection_unread_response[trio] PASSED [ 34%] tests/_async/test_http11.py::test_http11_connection_with_remote_protocol_error[asyncio] PASSED [ 35%] tests/_async/test_http11.py::test_http11_connection_with_remote_protocol_error[trio] PASSED [ 35%] tests/_async/test_http11.py::test_http11_connection_with_local_protocol_error[asyncio] PASSED [ 36%] tests/_async/test_http11.py::test_http11_connection_with_local_protocol_error[trio] PASSED [ 37%] tests/_async/test_http11.py::test_http11_connection_handles_one_active_request[asyncio] PASSED [ 37%] tests/_async/test_http11.py::test_http11_connection_handles_one_active_request[trio] PASSED [ 38%] tests/_async/test_http11.py::test_http11_connection_attempt_close[asyncio] PASSED [ 39%] tests/_async/test_http11.py::test_http11_connection_attempt_close[trio] PASSED [ 39%] tests/_async/test_http11.py::test_http11_request_to_incorrect_origin[asyncio] PASSED [ 40%] tests/_async/test_http11.py::test_http11_request_to_incorrect_origin[trio] PASSED [ 41%] tests/_async/test_http2.py::test_http2_connection[asyncio] PASSED [ 41%] tests/_async/test_http2.py::test_http2_connection[trio] PASSED [ 42%] tests/_async/test_http2.py::test_http2_connection_post_request[asyncio] PASSED [ 43%] tests/_async/test_http2.py::test_http2_connection_post_request[trio] PASSED [ 43%] tests/_async/test_http2.py::test_http2_connection_with_remote_protocol_error[asyncio] PASSED [ 44%] tests/_async/test_http2.py::test_http2_connection_with_remote_protocol_error[trio] PASSED [ 45%] tests/_async/test_http2.py::test_http2_connection_with_rst_stream[asyncio] PASSED [ 45%] tests/_async/test_http2.py::test_http2_connection_with_rst_stream[trio] PASSED [ 46%] tests/_async/test_http2.py::test_http2_connection_with_goaway[asyncio] PASSED [ 47%] tests/_async/test_http2.py::test_http2_connection_with_goaway[trio] PASSED [ 47%] tests/_async/test_http2.py::test_http2_connection_with_flow_control[asyncio] PASSED [ 48%] tests/_async/test_http2.py::test_http2_connection_with_flow_control[trio] PASSED [ 49%] tests/_async/test_http2.py::test_http2_connection_attempt_close[asyncio] PASSED [ 50%] tests/_async/test_http2.py::test_http2_connection_attempt_close[trio] PASSED [ 50%] tests/_async/test_http2.py::test_http2_request_to_incorrect_origin[asyncio] PASSED [ 51%] tests/_async/test_http2.py::test_http2_request_to_incorrect_origin[trio] PASSED [ 52%] tests/_async/test_http_proxy.py::test_proxy_forwarding[asyncio] PASSED [ 52%] tests/_async/test_http_proxy.py::test_proxy_forwarding[trio] PASSED [ 53%] tests/_async/test_http_proxy.py::test_proxy_tunneling[asyncio] PASSED [ 54%] tests/_async/test_http_proxy.py::test_proxy_tunneling[trio] PASSED [ 54%] tests/_async/test_http_proxy.py::test_proxy_tunneling_http2[asyncio] PASSED [ 55%] tests/_async/test_http_proxy.py::test_proxy_tunneling_http2[trio] PASSED [ 56%] tests/_async/test_http_proxy.py::test_proxy_tunneling_with_403[asyncio] PASSED [ 56%] tests/_async/test_http_proxy.py::test_proxy_tunneling_with_403[trio] PASSED [ 57%] tests/_async/test_http_proxy.py::test_proxy_tunneling_with_auth[asyncio] PASSED [ 58%] tests/_async/test_http_proxy.py::test_proxy_tunneling_with_auth[trio] PASSED [ 58%] tests/_async/test_integration.py::test_request[asyncio] PASSED [ 59%] tests/_async/test_integration.py::test_request[trio] PASSED [ 60%] tests/_async/test_integration.py::test_ssl_request[asyncio] PASSED [ 60%] tests/_async/test_integration.py::test_ssl_request[trio] PASSED [ 61%] tests/_async/test_integration.py::test_extra_info[asyncio] PASSED [ 62%] tests/_async/test_integration.py::test_extra_info[trio] PASSED [ 62%] tests/_async/test_socks_proxy.py::test_socks5_request[asyncio] PASSED [ 63%] tests/_async/test_socks_proxy.py::test_socks5_request[trio] PASSED [ 64%] tests/_async/test_socks_proxy.py::test_authenticated_socks5_request[asyncio] PASSED [ 64%] tests/_async/test_socks_proxy.py::test_authenticated_socks5_request[trio] PASSED [ 65%] tests/_async/test_socks_proxy.py::test_socks5_request_connect_failed[asyncio] PASSED [ 66%] tests/_async/test_socks_proxy.py::test_socks5_request_connect_failed[trio] PASSED [ 66%] tests/_async/test_socks_proxy.py::test_socks5_request_failed_to_provide_auth[asyncio] PASSED [ 67%] tests/_async/test_socks_proxy.py::test_socks5_request_failed_to_provide_auth[trio] PASSED [ 68%] tests/_async/test_socks_proxy.py::test_socks5_request_incorrect_auth[asyncio] PASSED [ 68%] tests/_async/test_socks_proxy.py::test_socks5_request_incorrect_auth[trio] PASSED [ 69%] tests/_sync/test_connection.py::test_http_connection PASSED [ 70%] tests/_sync/test_connection.py::test_concurrent_requests_not_available_on_http11_connections PASSED [ 70%] tests/_sync/test_connection.py::test_http2_connection PASSED [ 71%] tests/_sync/test_connection.py::test_request_to_incorrect_origin PASSED [ 72%] tests/_sync/test_connection.py::test_connection_retries PASSED [ 72%] tests/_sync/test_connection.py::test_uds_connections PASSED [ 73%] tests/_sync/test_connection_pool.py::test_connection_pool_with_keepalive PASSED [ 74%] tests/_sync/test_connection_pool.py::test_connection_pool_with_close PASSED [ 75%] tests/_sync/test_connection_pool.py::test_trace_request PASSED [ 75%] tests/_sync/test_connection_pool.py::test_connection_pool_with_http_exception PASSED [ 76%] tests/_sync/test_connection_pool.py::test_connection_pool_with_connect_exception PASSED [ 77%] tests/_sync/test_connection_pool.py::test_connection_pool_with_immediate_expiry FAILED [ 77%] tests/_sync/test_connection_pool.py::test_connection_pool_with_no_keepalive_connections_allowed PASSED [ 78%] tests/_sync/test_connection_pool.py::test_connection_pool_concurrency PASSED [ 79%] tests/_sync/test_connection_pool.py::test_connection_pool_concurrency_same_domain_closing PASSED [ 79%] tests/_sync/test_connection_pool.py::test_connection_pool_concurrency_same_domain_keepalive PASSED [ 80%] tests/_sync/test_connection_pool.py::test_unsupported_protocol PASSED [ 81%] tests/_sync/test_http11.py::test_http11_connection PASSED [ 81%] tests/_sync/test_http11.py::test_http11_connection_unread_response PASSED [ 82%] tests/_sync/test_http11.py::test_http11_connection_with_remote_protocol_error PASSED [ 83%] tests/_sync/test_http11.py::test_http11_connection_with_local_protocol_error PASSED [ 83%] tests/_sync/test_http11.py::test_http11_connection_handles_one_active_request PASSED [ 84%] tests/_sync/test_http11.py::test_http11_connection_attempt_close PASSED [ 85%] tests/_sync/test_http11.py::test_http11_request_to_incorrect_origin PASSED [ 85%] tests/_sync/test_http2.py::test_http2_connection PASSED [ 86%] tests/_sync/test_http2.py::test_http2_connection_post_request PASSED [ 87%] tests/_sync/test_http2.py::test_http2_connection_with_remote_protocol_error PASSED [ 87%] tests/_sync/test_http2.py::test_http2_connection_with_rst_stream PASSED [ 88%] tests/_sync/test_http2.py::test_http2_connection_with_goaway PASSED [ 89%] tests/_sync/test_http2.py::test_http2_connection_with_flow_control PASSED [ 89%] tests/_sync/test_http2.py::test_http2_connection_attempt_close PASSED [ 90%] tests/_sync/test_http2.py::test_http2_request_to_incorrect_origin PASSED [ 91%] tests/_sync/test_http_proxy.py::test_proxy_forwarding PASSED [ 91%] tests/_sync/test_http_proxy.py::test_proxy_tunneling PASSED [ 92%] tests/_sync/test_http_proxy.py::test_proxy_tunneling_http2 PASSED [ 93%] tests/_sync/test_http_proxy.py::test_proxy_tunneling_with_403 PASSED [ 93%] tests/_sync/test_http_proxy.py::test_proxy_tunneling_with_auth PASSED [ 94%] tests/_sync/test_integration.py::test_request PASSED [ 95%] tests/_sync/test_integration.py::test_ssl_request PASSED [ 95%] tests/_sync/test_integration.py::test_extra_info PASSED [ 96%] tests/_sync/test_socks_proxy.py::test_socks5_request PASSED [ 97%] tests/_sync/test_socks_proxy.py::test_authenticated_socks5_request PASSED [ 97%] tests/_sync/test_socks_proxy.py::test_socks5_request_connect_failed PASSED [ 98%] tests/_sync/test_socks_proxy.py::test_socks5_request_failed_to_provide_auth PASSED [ 99%] tests/_sync/test_socks_proxy.py::test_socks5_request_incorrect_auth PASSED [100%] ================================================================================================== FAILURES ================================================================================================== ____________________________________________________________________________ test_connection_pool_with_immediate_expiry[asyncio] _____________________________________________________________________________ @pytest.mark.anyio async def test_connection_pool_with_immediate_expiry(): """ Connection pools with keepalive_expiry=0.0 should immediately expire keep alive connections. """ network_backend = AsyncMockBackend( [ b"HTTP/1.1 200 OK\r\n", b"Content-Type: plain/text\r\n", b"Content-Length: 13\r\n", b"\r\n", b"Hello, world!", ] ) async with AsyncConnectionPool( keepalive_expiry=0.0, network_backend=network_backend, ) as pool: # Sending an intial request, which once complete will not return to the pool. async with pool.stream("GET", "https://example.com/") as response: info = [repr(c) for c in pool.connections] assert info == [ "" ] await response.aread() assert response.status == 200 assert response.content == b"Hello, world!" info = [repr(c) for c in pool.connections] > assert info == [] E assert ["'] == [] E Left contains one more item: "" E Full diff: E [ E - , E + "', E ] info = ["'] network_backend = pool = response = tests/_async/test_connection_pool.py:262: AssertionError _________________________________________________________________________________ test_connection_pool_with_immediate_expiry _________________________________________________________________________________ def test_connection_pool_with_immediate_expiry(): """ Connection pools with keepalive_expiry=0.0 should immediately expire keep alive connections. """ network_backend = MockBackend( [ b"HTTP/1.1 200 OK\r\n", b"Content-Type: plain/text\r\n", b"Content-Length: 13\r\n", b"\r\n", b"Hello, world!", ] ) with ConnectionPool( keepalive_expiry=0.0, network_backend=network_backend, ) as pool: # Sending an intial request, which once complete will not return to the pool. with pool.stream("GET", "https://example.com/") as response: info = [repr(c) for c in pool.connections] assert info == [ "" ] response.read() assert response.status == 200 assert response.content == b"Hello, world!" info = [repr(c) for c in pool.connections] > assert info == [] E assert ["'] == [] E Left contains one more item: "" E Full diff: E [ E - , E + "', E ] info = ["'] network_backend = pool = response = tests/_sync/test_connection_pool.py:262: AssertionError ============================================================================================== warnings summary ============================================================================================== ../../../../../../../usr/lib/python3.9/site-packages/pytest_asyncio/plugin.py:191 /usr/lib/python3.9/site-packages/pytest_asyncio/plugin.py:191: DeprecationWarning: The 'asyncio_mode' default value will change to 'strict' in future, please explicitly use 'asyncio_mode=strict' or 'asyncio_mode=auto' in pytest configuration file. config.issue_config_time_warning(LEGACY_MODE, stacklevel=2) tests/_async/test_integration.py::test_ssl_request[asyncio] /usr/lib/python3.9/socketserver.py:347: ResourceWarning: unclosed self.finish_request(request, client_address) tests/_async/test_integration.py::test_ssl_request[trio] /usr/lib/python3.9/socketserver.py:347: ResourceWarning: unclosed self.finish_request(request, client_address) tests/_async/test_integration.py::test_extra_info[asyncio] /usr/lib/python3.9/socketserver.py:347: ResourceWarning: unclosed self.finish_request(request, client_address) tests/_async/test_integration.py::test_extra_info[trio] /usr/lib/python3.9/socketserver.py:347: ResourceWarning: unclosed self.finish_request(request, client_address) tests/_sync/test_integration.py::test_ssl_request /usr/lib/python3.9/socketserver.py:347: ResourceWarning: unclosed self.finish_request(request, client_address) tests/_sync/test_integration.py::test_extra_info /usr/lib/python3.9/socketserver.py:347: ResourceWarning: unclosed self.finish_request(request, client_address) -- Docs: https://docs.pytest.org/en/stable/warnings.html ========================================================================================== short test summary info =========================================================================================== FAILED tests/_async/test_connection_pool.py::test_connection_pool_with_immediate_expiry[asyncio] - assert ["'] == [] FAILED tests/_sync/test_connection_pool.py::test_connection_pool_with_immediate_expiry - assert ["'] == [] ================================================================================= 2 failed, 146 passed, 7 warnings in 26.53s ================================================================================= * ERROR: dev-python/httpcore-0.14.5::gentoo failed (test phase): * pytest failed with python3.9 * * Call stack: * ebuild.sh, line 127: Called src_test * environment, line 3017: Called distutils-r1_src_test * environment, line 1317: Called _distutils-r1_run_foreach_impl 'python_test' * environment, line 491: Called python_foreach_impl 'distutils-r1_run_phase' 'python_test' * environment, line 2680: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' * environment, line 2169: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' * environment, line 2167: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test' * environment, line 792: Called distutils-r1_run_phase 'python_test' * environment, line 1256: Called python_test * environment, line 2976: Called distutils-r1_python_test * environment, line 1208: Called epytest * environment, line 1683: Called die * The specific snippet of code: * "${@}" || die -n "pytest failed with ${EPYTHON}"; * * If you need support, post the output of `emerge --info '=dev-python/httpcore-0.14.5::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-python/httpcore-0.14.5::gentoo'`. * The complete build log is located at '/var/tmp/portage/dev-python/httpcore-0.14.5/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-python/httpcore-0.14.5/temp/environment'. * Working directory: '/var/tmp/portage/dev-python/httpcore-0.14.5/work/httpcore-0.14.5' * S: '/var/tmp/portage/dev-python/httpcore-0.14.5/work/httpcore-0.14.5'