Commit 3ac3a25
committed
test: sse_client propagates bare HTTPStatusError on 4xx/5xx
Sibling to the ConnectError test. The connect-first refactor means
raise_for_status() at L65 fires before the task group, so HTTPStatusError
propagates bare (not ExceptionGroup-wrapped). The ConnectError test never
reaches L65, so it wouldn't catch a regression that moves raise_for_status()
back inside the task group.
Uses httpx.MockTransport — no socket, no port, deterministic.1 parent ad1fcb9 commit 3ac3a25
1 file changed
+23
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
73 | 96 | | |
74 | 97 | | |
75 | 98 | | |
| |||
0 commit comments