Commit 5b35244
committed
fix(test): move final assertion inside async-with to keep 100% cov on 3.11
On Python 3.11 the `async with streamable_http_client(...)` context
manager's `__aexit__` has a coverage-instrumentation quirk (noted in
AGENTS.md) where statements immediately after the `async with` block
are reported as uncovered even when the test itself passes.
Move the `assert isinstance(received, httpx.ConnectError)` inside the
block so coverage hits it deterministically across the 3.10–3.14
matrix. Verified locally against 3.11.1 parent 23a1c1a commit 5b35244
File tree
1 file changed
+1
-1
lines changed1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2442 | 2442 | | |
2443 | 2443 | | |
2444 | 2444 | | |
2445 | | - | |
| 2445 | + | |
0 commit comments