Skip to content

Commit a94b549

Browse files
committed
win error
1 parent ba385fa commit a94b549

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/client/test_stdio.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,8 @@ async def test_stdio_client_nonexistent_command():
9191

9292
# The error should indicate the command was not found
9393
error_message = str(exc_info.value)
94-
assert "nonexistent" in error_message or "not found" in error_message.lower()
94+
assert (
95+
"nonexistent" in error_message
96+
or "not found" in error_message.lower()
97+
or "cannot find the file" in error_message.lower() # Windows error message
98+
)

0 commit comments

Comments
 (0)