mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
cf3c561100
- `check_output` needs to pass `PYTHONIOENCODING` to `Popen` on python2 Signed-off-by: Dan Ryan <dan@danryan.co>
12 lines
224 B
Python
12 lines
224 B
Python
import os
|
|
import subprocess
|
|
import sys
|
|
|
|
|
|
def test_help():
|
|
output = subprocess.check_output(
|
|
[sys.executable, '-m', 'pipenv.help'],
|
|
stderr=subprocess.STDOUT, env=os.environ.copy(),
|
|
)
|
|
assert output
|