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:
committed by
Mariusz Felisiak
parent
ca58378390
commit
840ad06300
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user