aboutsummaryrefslogtreecommitdiff
path: root/unittests/rewritetests.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 /unittests/rewritetests.py
parentad525dcce45487def9d3950bed159f1c158e3581 (diff)
downloadmeson-751f84405eb1138b7a9b75bfb51be161a62057e4.zip
meson-751f84405eb1138b7a9b75bfb51be161a62057e4.tar.gz
meson-751f84405eb1138b7a9b75bfb51be161a62057e4.tar.bz2
pyupgrade --py37-plus
Diffstat (limited to 'unittests/rewritetests.py')
-rw-r--r--unittests/rewritetests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/unittests/rewritetests.py b/unittests/rewritetests.py
index 1e6a398..1d90f2a 100644
--- a/unittests/rewritetests.py
+++ b/unittests/rewritetests.py
@@ -32,8 +32,8 @@ class RewriterTests(BasePlatformTests):
if isinstance(args, str):
args = [args]
command = self.rewrite_command + ['--verbose', '--skip', '--sourcedir', directory] + args
- p = subprocess.run(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
- universal_newlines=True, timeout=60)
+ p = subprocess.run(command, capture_output=True,
+ text=True, timeout=60)
print('STDOUT:')
print(p.stdout)
print('STDERR:')