1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +00:00

Refs #32355 -- Modernized subprocess.run() calls.

This commit is contained in:
Adam Johnson
2021-09-25 09:18:25 +01:00
committed by Mariusz Felisiak
parent ca58378390
commit 840ad06300
4 changed files with 9 additions and 9 deletions

View File

@@ -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