summaryrefslogtreecommitdiff
path: root/tests/admin_scripts/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/admin_scripts/tests.py')
-rw-r--r--tests/admin_scripts/tests.py5
1 files changed, 3 insertions, 2 deletions
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