We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3dd35d7 commit 25869d0Copy full SHA for 25869d0
newsfragments/3409.bugfix.rst
@@ -0,0 +1 @@
1
+Fixed incorrect error message in `run_process`: the `stdout` pipe check now correctly says "stdout" instead of "stdin".
src/trio/_subprocess.py
@@ -675,7 +675,7 @@ async def my_deliver_cancel(process):
675
if task_status is trio.TASK_STATUS_IGNORED:
676
if stdin is subprocess.PIPE:
677
raise ValueError(
678
- "stdout=subprocess.PIPE is only valid with nursery.start, "
+ "stdin=subprocess.PIPE is only valid with nursery.start, "
679
"since that's the only way to access the pipe; use nursery.start "
680
"or pass the data you want to write directly",
681
)
0 commit comments