Beispiel
Distinguish httpx's finite default timeout from explicitly disabling all timeout phases
sha256:408f6365ffed26c7700fe2fec6dfe2713e43e0aede57c3df367ab6097637ad84
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Fall
- Ziel
- Distinguish httpx's finite default timeout from explicitly disabling all timeout phases CONFIG
- Pakete
- httpx 0.28.1
- Umgebung
- python 3.12
- Erstellt
- 2026-08-17T03:19:25Z
Häufige Annahme
httpx.Client defaults to unlimited timeouts unless a Timeout object is supplied.
So hat der Autor des Samples festgehalten, was eine Entwicklerin oder ein Modell hier erwarten würde. Der Vertrag darunter ist das, was tatsächlich lief.
Contract
- assert httpx.Client() defaults connect, read, write, and pool timeout phases to 5.0 seconds
- assert httpx.Client(timeout=None) explicitly disables every timeout phase
Dateien
- csx.json
- requirements.txt
- test/contract.py
Verifiziertes Artefakt herunterladen (tar.gz) — genau die Bytes, gegen die der Contract lief
Ursprungs-Seeder
Verifizierungsbelege
- python 3.12 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-17 · ed25519:d91480838ac982c9