Skip to content

Commit

Permalink
Bug fix for integ test on windows wiht py3
Browse files Browse the repository at this point in the history
Subprocess expectes str() not bytes() and will try to process
the arg as a list if it receives bytes().
  • Loading branch information
jamesls committed Mar 27, 2014
1 parent 920347f commit 03879d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/integration/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def aws(command, collect_memory=False, env_vars=None,
aws_command = 'python %s' % AWS_CMD
full_command = '%s %s' % (aws_command, command)
stdout_encoding = _get_stdout_encoding()
if isinstance(full_command, six.text_type):
if isinstance(full_command, six.text_type) and not six.PY3:
full_command = full_command.encode(stdout_encoding)
LOG.debug("Running command: %s", full_command)
env = os.environ.copy()
Expand Down

0 comments on commit 03879d4

Please sign in to comment.