python3.14-httpx2-2.9.1
checks.aarch64-darwin.pkgs-mistral-vibe
· build #4973
· raw
1structuredAttrs is enabled2Sourcing python-remove-tests-dir-hook3Sourcing python-catch-conflicts-hook.sh4Sourcing python-remove-bin-bytecode-hook.sh5Sourcing pypa-build-hook6Using pypaBuildPhase7Sourcing python-runtime-deps-check-hook8Using pythonRuntimeDepsCheckHook9Sourcing pypa-install-hook10Using pypaInstallPhase11Sourcing python-imports-check-hook.sh12Using pythonImportsCheckPhase13Sourcing python-metadata-check-hook.sh14Using pythonMetadataCheckPhase15Sourcing python-namespaces-hook16Sourcing python-catch-conflicts-hook.sh17Sourcing pytest-check-hook18Using pytestCheckPhase
unpackPhase
19unpacking source archive /nix/store/6rc0s4a15hsdjmylz4bi6qb56ikfwni2-source20source root is source21setting SOURCE_DATE_EPOCH to timestamp 315619200 of file "source/wrangler.toml"patchPhase
22/nix/var/nix/builds/nix-72896-2464402623/source/src/httpx2 /nix/var/nix/builds/nix-72896-2464402623/sourceconfigurePhase
23no configure script, doing nothingbuildPhase
24Executing pypaBuildPhase25Setting UV_DYNAMIC_VERSIONING_BYPASS to 2.9.126Creating a wheel...27pypa build flags: --no-isolation --outdir dist/ --wheel28* Getting build dependencies for wheel...29* Building wheel...30Successfully built httpx2-2.9.1-py3-none-any.whl31Finished creating a wheel...32Finished executing pypaBuildPhasepythonRuntimeDepsCheckHook
33Executing pythonRuntimeDepsCheck34Checking runtime dependencies for httpx2-2.9.1-py3-none-any.whl35Finished executing pythonRuntimeDepsCheckinstallPhase
36Executing pypaInstallPhase37Successfully installed httpx2-2.9.1-py3-none-any.whl38Finished executing pypaInstallPhasepythonOutputDistPhase
39Executing pythonOutputDistPhase40Finished executing pythonOutputDistPhasefixupPhase
41checking for references to /nix/var/nix/builds/nix-72896-2464402623/ in /nix/store/pb8mgixdv6j4lxa5fgxw9dq3hc8b6g9k-python3.14-httpx2-2.9.1-dist...42patching script interpreter paths in /nix/store/pb8mgixdv6j4lxa5fgxw9dq3hc8b6g9k-python3.14-httpx2-2.9.1-dist43checking for references to /nix/var/nix/builds/nix-72896-2464402623/ in /nix/store/3cl1yyis7am3zflr4m0f1b4hc2h791rw-python3.14-httpx2-2.9.1...44patching script interpreter paths in /nix/store/3cl1yyis7am3zflr4m0f1b4hc2h791rw-python3.14-httpx2-2.9.145stripping (with command strip and flags -S) in /nix/store/3cl1yyis7am3zflr4m0f1b4hc2h791rw-python3.14-httpx2-2.9.1/lib /nix/store/3cl1yyis7am3zflr4m0f1b4hc2h791rw-python3.14-httpx2-2.9.1/bin46Rewriting #!/nix/store/4l8r0s2r5fna7src82b5fc2hixdvfyw0-python3-3.14.7/bin/python3.14 to #!/nix/store/4l8r0s2r5fna7src82b5fc2hixdvfyw0-python3-3.14.747wrapping `/nix/store/3cl1yyis7am3zflr4m0f1b4hc2h791rw-python3.14-httpx2-2.9.1/bin/httpx2'...48Executing pythonRemoveTestsDir49Finished executing pythonRemoveTestsDirinstallCheckPhase
50no Makefile or custom installCheckPhase, doing nothingpythonImportsCheckPhase
51Executing pythonImportsCheckPhase52Check whether the following modules can be imported: httpx2pythonMetadataCheckPhase
53Executing pythonMetadataCheckPhasepytestCheckPhase
54Executing pytestCheckPhase55/nix/var/nix/builds/nix-72896-2464402623/source56pytest flags: -m pytest -k not\ \(test_async_proxy_close\)\ and\ not\ \(test_sync_proxy_close\)\ and\ not\ \(test_logging_request\)\ and\ not\ \(test_logging_redirect_chain\)\ and\ not\ \(test_client_decode_text_using_autodetect\)\ and\ not\ \(test_client_decode_text_using_explicit_encoding\)\ and\ not\ \(test_response_decode_text_using_autodetect\)\ and\ not\ \(test_keepalive_ping\) tests/httpx257============================= test session starts ==============================58platform darwin -- Python 3.14.7, pytest-9.1.1, pluggy-1.6.059rootdir: /nix/var/nix/builds/nix-72896-2464402623/source60configfile: pyproject.toml61plugins: trio-0.8.0, anyio-4.14.262collected 1647 items / 14 deselected / 1633 selected 6364tests/httpx2/client/test_async_client.py ............................... [ 1%]65....................... [ 3%]66tests/httpx2/client/test_auth.py ....................................... [ 5%]67.................................s....... [ 8%]68tests/httpx2/client/test_client.py .................................. [ 10%]69tests/httpx2/client/test_cookies.py ....... [ 10%]70tests/httpx2/client/test_event_hooks.py ......... [ 11%]71tests/httpx2/client/test_headers.py ................. [ 12%]72tests/httpx2/client/test_properties.py ........ [ 12%]73tests/httpx2/client/test_proxies.py .................................... [ 15%]74.............................. [ 16%]75tests/httpx2/client/test_queryparams.py ... [ 17%]76tests/httpx2/client/test_redirects.py ................................. [ 19%]77tests/httpx2/models/test_cookies.py ....... [ 19%]78tests/httpx2/models/test_headers.py ................................. [ 21%]79tests/httpx2/models/test_queryparams.py .............. [ 22%]80tests/httpx2/models/test_requests.py ........................ [ 23%]81tests/httpx2/models/test_responses.py .................................. [ 25%]82........................................................................ [ 30%]83 [ 30%]84tests/httpx2/models/test_url.py ........................................ [ 32%]85..................................................... [ 36%]86tests/httpx2/models/test_whatwg.py ..................................... [ 38%]87........................................................................ [ 42%]88........................................................................ [ 47%]89........................................................................ [ 51%]90........................................................................ [ 55%]91........................................................................ [ 60%]92........................................................................ [ 64%]93........................................................................ [ 69%]94...................... [ 70%]95tests/httpx2/test_alias.py ............ [ 71%]96tests/httpx2/test_api.py ............. [ 72%]97tests/httpx2/test_asgi.py ........................ [ 73%]98tests/httpx2/test_auth.py ......... [ 74%]99tests/httpx2/test_config.py ........................... [ 75%]100tests/httpx2/test_content.py ........................................... [ 78%]101. [ 78%]102tests/httpx2/test_decoders.py .......................................... [ 80%]103... [ 81%]104tests/httpx2/test_exceptions.py ... [ 81%]105tests/httpx2/test_exported_members.py . [ 81%]106tests/httpx2/test_main.py ........... [ 82%]107tests/httpx2/test_multipart.py ...................................... [ 84%]108tests/httpx2/test_sse.py .............................. [ 86%]109tests/httpx2/test_status_codes.py ...... [ 86%]110tests/httpx2/test_timeouts.py .......... [ 87%]111tests/httpx2/test_utils.py ....................................... [ 89%]112tests/httpx2/test_wsgi.py ............ [ 90%]113tests/httpx2/websockets/test_api.py .................................... [ 92%]114.....................................................................F [ 96%]115tests/httpx2/websockets/test_high_level.py ............ [ 97%]116tests/httpx2/websockets/test_transport.py .............................. [ 99%]117.......... [100%]118119=================================== FAILURES ===================================120_______________________ TestReceive.test_receive_timeout _______________________121122self = <tests.httpx2.websockets.test_api.TestReceive object at 0x10de06650>123124 def test_receive_timeout(self) -> None:125 class MockNetworkStream(NetworkStream):126 def __init__(self) -> None:127 self.connection = wsproto.connection.Connection(wsproto.connection.ConnectionType.SERVER)128 129 def read(self, max_bytes: int, timeout: float | None = None) -> bytes:130 time.sleep(0.2)131 return b""132 133 def write(self, buffer: bytes, timeout: float | None = None) -> None:134 pass135 136 def close(self) -> None:137 pass138 139 stream = MockNetworkStream()140 with pytest.raises(TimeoutError):141 with WebSocketSession(stream) as websocket_session:142> websocket_session.receive(timeout=0.1)143144tests/httpx2/websockets/test_api.py:255: 145_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 146147self = <httpx2.websockets._api.WebSocketSession object at 0x10dc1e430>148timeout = 0.1149150 def receive(self, timeout: float | None = None) -> wsproto.events.Event:151 """152 Receive an event from the server.153 154 Mainly useful to receive raw [wsproto.events.Event][wsproto.events.Event].155 Most of the time, [receive_text()][httpx_ws.WebSocketSession.receive_text],156 [receive_bytes()][httpx_ws.WebSocketSession.receive_bytes],157 and [receive_json()][httpx_ws.WebSocketSession.receive_json] are preferred.158 159 Args:160 timeout:161 Number of seconds to wait for an event.162 If `None`, will block until an event is available.163 164 Returns:165 A raw [wsproto.events.Event][wsproto.events.Event].166 167 Raises:168 TimeoutError: No event was received before the timeout delay.169 WebSocketDisconnect: The server closed the websocket.170 WebSocketNetworkError: A network error occured.171 172 Examples:173 Wait for an event until one is available.174 175 try:176 event = ws.receive()177 except WebSocketDisconnect:178 print("Connection closed")179 180 Wait for an event for 2 seconds.181 182 try:183 event = ws.receive(timeout=2.)184 except TimeoutError:185 print("No event received.")186 except WebSocketDisconnect:187 print("Connection closed")188 """189 try:190 event = self._events.get(block=True, timeout=timeout)191 except queue.Empty as e:192 raise TimeoutError from e193 if isinstance(event, HTTPXWSException):194> raise event195E httpx2.websockets._exceptions.WebSocketNetworkError196197/nix/store/3cl1yyis7am3zflr4m0f1b4hc2h791rw-python3.14-httpx2-2.9.1/lib/python3.14/site-packages/httpx2/websockets/_api.py:319: WebSocketNetworkError198=========================== short test summary info ============================199SKIPPED [1] tests/httpx2/client/test_auth.py:253: netrc files without a password are valid from Python >= 3.11200========== 1 failed, 1631 passed, 1 skipped, 14 deselected in 24.57s ===========