Skip to content

Commit 61fd3a6

Browse files
mplemaycursoragent
andcommitted
test(stdio): allow stderr warnings before clean-exit line
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 71d6078 commit 61fd3a6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/interaction/transports/test_stdio.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ async def collect(params: LoggingMessageNotificationParams) -> None:
9292
# seeing it proves the process exited on its own rather than via the transport's terminate
9393
# escalation, without a timing-based assertion. The capture itself proves stderr passthrough:
9494
# the transport routes the child's stderr to the caller's `errlog` without consuming it.
95-
assert captured_stderr == snapshot("stdio-echo: clean exit\n")
95+
# Match the trailing line only: older anyio on py3.14 lowest-direct can emit SyntaxWarning to stderr.
96+
assert captured_stderr.endswith("stdio-echo: clean exit\n")
9697

9798

9899
@requirement("transport:stdio:stream-purity")

0 commit comments

Comments
 (0)