Skip to content

Commit

Permalink
Fix bytes literals in run() command (kubeflow#121)
Browse files Browse the repository at this point in the history
Currently this does not work with python3
  • Loading branch information
Ankush Agarwal authored and k8s-ci-robot committed May 4, 2018
1 parent 2dd4468 commit f611e5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/kubeflow/testing/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def run(command, cwd=None, env=None, polling_interval=datetime.timedelta(seconds
time.sleep(polling_interval.total_seconds())

process.stdout.flush()
for line in iter(process.stdout.readline, ''):
for line in iter(process.stdout.readline, b''):
output.append(line.strip())
logging.info(line.strip())

Expand Down

0 comments on commit f611e5c

Please sign in to comment.