Skip to content

Commit 3d54568

Browse files
MAINT: apply ruff/pyupgrade rule UP022
UP022 Prefer `capture_output` over sending `stdout` and `stderr` to `PIPE`
1 parent 1d56d38 commit 3d54568

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

numpy/f2py/tests/util.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,7 @@ def check_language(lang, code_snippet=None):
218218
["meson", "setup", "btmp"],
219219
check=False,
220220
cwd=tmpdir,
221-
stdout=subprocess.PIPE,
222-
stderr=subprocess.PIPE,
221+
capture_output=True,
223222
)
224223
if runmeson.returncode == 0:
225224
return True

0 commit comments

Comments
 (0)