Repository navigation
Commit 6c51892
committed
fix: BaseSession.__aexit__ healing checkpoint for gh-106749 (CI 3.11/3.14)
The second gh-106749 site (the first being _memory.py): BaseSession's
task-group cancel is also delivered via coro.throw() into the host task,
desyncing CTracer past the caller's frame on 3.11. A
cancel_shielded_checkpoint() after the join resumes via .send() and
re-stamps the missing 'call' events. Shielded so a pending outer cancel
isn't re-delivered here.
The added tick shifts whether tests reach streamable_http.py's outer
POST-error handler (it was timing-dependent before too); marked lax no
cover.
Also: collapse a nested with in test_jsonrpc_dispatcher.py and pragma: no
branch it (3.14 misreports the 254->255 arc on the nested-with bytecode
shape).1 parent 67d61ab commit 6c51892
3 files changed
Lines changed: 17 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
635 | 635 | | |
636 | 636 | | |
637 | 637 | | |
638 | | - | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
639 | 642 | | |
640 | 643 | | |
641 | 644 | | |
642 | 645 | | |
643 | 646 | | |
644 | 647 | | |
645 | 648 | | |
646 | | - | |
| 649 | + | |
647 | 650 | | |
648 | 651 | | |
649 | 652 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
173 | 174 | | |
174 | 175 | | |
175 | 176 | | |
176 | | - | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
177 | 186 | | |
178 | 187 | | |
179 | 188 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
252 | | - | |
| 252 | + | |
253 | 253 | | |
254 | | - | |
255 | | - | |
| 254 | + | |
256 | 255 | | |
257 | 256 | | |
258 | 257 | | |
| |||
0 commit comments