Skip to content

Commit 1c5c97d

Browse files
authored
Send unwanted output to DEVNULL rather than capturing it
1 parent f5d6751 commit 1c5c97d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pyproject_hooks/_impl.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def quiet_subprocess_runner(
9595
) -> None:
9696
"""Call the subprocess while suppressing output.
9797
98-
This uses :func:`subprocess.run` with `stdout=PIPE, stderr=STDOUT` under the hood.
98+
This uses :func:`subprocess.run` with `stdout=DEVNULL, stderr=DEVNULL` under the hood.
9999
"""
100100
env = os.environ.copy()
101101
if extra_environ:
@@ -105,8 +105,8 @@ def quiet_subprocess_runner(
105105
cmd,
106106
cwd=cwd,
107107
env=env,
108-
stdout=subprocess.PIPE,
109-
stderr=subprocess.STDOUT,
108+
stdout=subprocess.DEVNULL,
109+
stderr=subprocess.DEVNULL,
110110
check=True,
111111
)
112112

0 commit comments

Comments
 (0)