aboutsummaryrefslogtreecommitdiff
path: root/run_project_tests.py
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2021-08-15 11:34:11 -0400
committerEli Schwartz <eschwartz@archlinux.org>2022-01-10 18:36:56 -0500
commit751f84405eb1138b7a9b75bfb51be161a62057e4 (patch)
tree3f7f0ee76eddabc80be6d166406dd14c7bca0258 /run_project_tests.py
parentad525dcce45487def9d3950bed159f1c158e3581 (diff)
downloadmeson-751f84405eb1138b7a9b75bfb51be161a62057e4.zip
meson-751f84405eb1138b7a9b75bfb51be161a62057e4.tar.gz
meson-751f84405eb1138b7a9b75bfb51be161a62057e4.tar.bz2
pyupgrade --py37-plus
Diffstat (limited to 'run_project_tests.py')
-rwxr-xr-xrun_project_tests.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/run_project_tests.py b/run_project_tests.py
index 822cf0b..5fea660 100755
--- a/run_project_tests.py
+++ b/run_project_tests.py
@@ -926,8 +926,7 @@ def have_d_compiler() -> bool:
# that exists but segfaults every time the compiler is run.
# Don't know why. Don't know how to fix. Skip in this case.
cp = subprocess.run(['dmd', '--version'],
- stdout=subprocess.PIPE,
- stderr=subprocess.PIPE)
+ capture_output=True)
if cp.stdout == b'':
return False
return True