mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Pass environment to subprocess
- `check_output` needs to pass `PYTHONIOENCODING` to `Popen` on python2 Signed-off-by: Dan Ryan <dan@danryan.co>
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
@@ -5,6 +6,6 @@ import sys
|
||||
def test_help():
|
||||
output = subprocess.check_output(
|
||||
[sys.executable, '-m', 'pipenv.help'],
|
||||
stderr=subprocess.STDOUT,
|
||||
stderr=subprocess.STDOUT, env=os.environ.copy(),
|
||||
)
|
||||
assert output
|
||||
|
||||
Reference in New Issue
Block a user