sisyfyZhang 9601559864
test(runtime): pin the flush() yield with a version-independent regression test (#6569)
The existing cross-thread test only goes red on Python 3.13+, while every
backend CI workflow pins 3.12, so removing the yield added in #6565 would
stay green. Record a middleware event from a raw thread, join it with no
intervening await so the call_soon_threadsafe hop is provably pending, then
close(flush=True): without the yield the event is dropped on every version.

Follows up the review on #6565.

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-09 22:08:59 +08:00
..