tractor/tests/devx
Gud Boi 086962ca36 Preserve cancellation over shielded `send_all()` errors
The frame-publication shield added in `88a23449` checks for
pending cancellation only after a successful write. If actor
teardown closes the stream first, `ClosedResourceError` escaped
as `TransportClosed` and could defeat the caller's cancel scope.

Check for pending cancellation on the transport-error path before
normalizing the close. Genuine stream errors retain their existing
translation when no cancellation is active.

The cancellation-first path can swap which nested debugger
intermediary renders as the immediate source vs. relay. Keep
assertions over both actor levels while accepting either valid role.

Prompt-IO: ai/prompt-io/opencode/20260820T143845Z_559fd0f1_prompt_io.md

(this patch was generated in some part by `opencode` using
`gpt-5.6-sol` (`openai`))
2026-08-21 15:03:34 -04:00
..
__init__.py Officially test proto-ed `stackscope` integration 2025-03-27 13:24:25 -04:00
conftest.py Strip ANSI + accept `_create(...)` in devx tests 2026-06-24 18:19:16 -04:00
test_debugger.py Preserve cancellation over shielded `send_all()` errors 2026-08-21 15:03:34 -04:00
test_pause_from_non_trio.py Update `sync_bp` + tighten `test_pause_from_sync` 2026-06-17 17:39:44 -04:00
test_pformat.py Fix send-side `MsgTypeError` rendering 2026-08-20 11:57:39 -04:00
test_proctitle.py Hoist proc-title prefix to `_def_prefix` const 2026-06-24 16:20:50 -04:00
test_tooling.py Harden debugger teardown assertions 2026-08-21 15:03:34 -04:00