diff options
author | Adam Johnson <me@adamj.eu> | 2021-09-25 09:18:25 +0100 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-09-27 08:20:24 +0200 |
commit | 840ad06300ac38e0e0e18ea36d6969cc03c875a9 (patch) | |
tree | a06fa901030b76f1ae30446b1db37387d80653ad /tests/admin_scripts | |
parent | ca583783900d98188c488add21f77702a94a7922 (diff) | |
download | django-840ad06300ac38e0e0e18ea36d6969cc03c875a9.tar.gz |
Refs #32355 -- Modernized subprocess.run() calls.
Diffstat (limited to 'tests/admin_scripts')
-rw-r--r-- | tests/admin_scripts/tests.py | 5 |
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 |