Skip to content

Commit 9572a85

Browse files
committed
Decode the captured child stderr leniently, like the other two captures
1 parent dbf7dca commit 9572a85

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tests/interaction/transports/test_stdio.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ async def test_tool_call_and_notification_round_trip_over_a_stdio_subprocess(
7171
async def collect(params: LoggingMessageNotificationParams) -> None:
7272
received.append(params)
7373

74-
with tempfile.TemporaryFile(mode="w+", encoding="utf-8") as errlog:
74+
with tempfile.TemporaryFile(mode="w+", encoding="utf-8", errors="replace") as errlog:
7575
transport = stdio_client(
7676
StdioServerParameters(
7777
command=sys.executable,

0 commit comments

Comments
 (0)