Skip to content

Commit

Permalink
Capture stderr in 'real python' check
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan P Kilby committed Oct 26, 2017
1 parent b16e325 commit 991db87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tox/venv.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def _real_python3(self, python):
"""
args = [str(python), '-c', 'import sys; print(sys.real_prefix)']

process = subprocess.Popen(args, stdout=subprocess.PIPE)
process = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
output, _ = process.communicate()
output = output.decode('UTF-8').strip()
path = os.path.join(output, 'bin/python3')
Expand Down

0 comments on commit 991db87

Please sign in to comment.