Skip to content

Commit 6a2f6c8

Browse files
author
nightcityblade
committed
fix: update test to match corrected stdin error message
1 parent 25869d0 commit 6a2f6c8

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/trio/_tests/test_subprocess.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,9 +367,10 @@ async def test_run() -> None:
367367
with pytest.raises(UnicodeError):
368368
await run_process(CAT, stdin="oh no, it's text")
369369

370-
pipe_stdout_error = r"^stdout=subprocess\.PIPE is only valid with nursery\.start, since that's the only way to access the pipe(; use nursery\.start or pass the data you want to write directly)*$"
371-
with pytest.raises(ValueError, match=pipe_stdout_error):
370+
pipe_stdin_error = r"^stdin=subprocess\.PIPE is only valid with nursery\.start, since that's the only way to access the pipe(; use nursery\.start or pass the data you want to write directly)*$"
371+
with pytest.raises(ValueError, match=pipe_stdin_error):
372372
await run_process(CAT, stdin=subprocess.PIPE)
373+
pipe_stdout_error = r"^stdout=subprocess\.PIPE is only valid with nursery\.start, since that's the only way to access the pipe(; use nursery\.start or pass the data you want to write directly)*$"
373374
with pytest.raises(ValueError, match=pipe_stdout_error):
374375
await run_process(CAT, stdout=subprocess.PIPE)
375376
with pytest.raises(

0 commit comments

Comments
 (0)