Skip to content

Commit 56fce55

Browse files
author
nightcityblade
committed
fix: use exact match regex per review suggestion
1 parent 97ba75c commit 56fce55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/trio/_tests/test_subprocess.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,10 +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_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)?$"
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$"
371371
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)?$"
373+
pipe_stdout_error = r"^stdout=subprocess\.PIPE is only valid with nursery\.start, since that's the only way to access the pipe$"
374374
with pytest.raises(ValueError, match=pipe_stdout_error):
375375
await run_process(CAT, stdout=subprocess.PIPE)
376376
with pytest.raises(

0 commit comments

Comments
 (0)