From 751f84405eb1138b7a9b75bfb51be161a62057e4 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Sun, 15 Aug 2021 11:34:11 -0400 Subject: pyupgrade --py37-plus --- unittests/rewritetests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'unittests/rewritetests.py') 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:') -- cgit v1.1