From 840ad06300ac38e0e0e18ea36d6969cc03c875a9 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Sat, 25 Sep 2021 09:18:25 +0100 Subject: Refs #32355 -- Modernized subprocess.run() calls. --- tests/admin_scripts/tests.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/admin_scripts') diff --git a/tests/admin_scripts/tests.py b/tests/admin_scripts/tests.py index 9467bf32c3..2c3f365c74 100644 --- a/tests/admin_scripts/tests.py +++ b/tests/admin_scripts/tests.py @@ -120,9 +120,10 @@ class AdminScriptTestCase(SimpleTestCase): p = subprocess.run( [sys.executable, *args], - stdout=subprocess.PIPE, stderr=subprocess.PIPE, + capture_output=True, cwd=self.test_dir, - env=test_environ, universal_newlines=True, + env=test_environ, + text=True, ) return p.stdout, p.stderr -- cgit v1.3