summaryrefslogtreecommitdiff
path: root/tests/admin_scripts
diff options
context:
space:
mode:
authorAdam Johnson <me@adamj.eu>2021-09-25 09:18:25 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2021-09-27 08:20:24 +0200
commit840ad06300ac38e0e0e18ea36d6969cc03c875a9 (patch)
treea06fa901030b76f1ae30446b1db37387d80653ad /tests/admin_scripts
parentca583783900d98188c488add21f77702a94a7922 (diff)
downloaddjango-840ad06300ac38e0e0e18ea36d6969cc03c875a9.tar.gz
Refs #32355 -- Modernized subprocess.run() calls.
Diffstat (limited to 'tests/admin_scripts')
-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