Skip to content

Commit

Permalink
add more debugging output for py27 win subprocess failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
msarahan committed May 30, 2019
1 parent 0f1e683 commit 7520a8b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/test_exports.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,13 @@ def test_conda_subprocess():
from subprocess import Popen, PIPE
import conda

p = Popen(['echo', '"%s"' % conda.__version__], env=os.environ, stdout=PIPE, stderr=PIPE,
shell=on_win)
try:
p = Popen(['echo', '"%s"' % conda.__version__], env=os.environ, stdout=PIPE, stderr=PIPE,
shell=on_win)
except TypeError:
for k, v in os.environ.items():
print("%s (%s): %s (%s)" % (k, type(k), v, type(v)))
raise
stdout, stderr = p.communicate()
rc = p.returncode
if rc != 0:
Expand Down

0 comments on commit 7520a8b

Please sign in to comment.