Skip to content

Commit

Permalink
Fix universal_newlines for Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshRosen committed Jun 28, 2015
1 parent cd13db8 commit 110cd9d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/run-tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,11 @@ def main():
task_queue = Queue.Queue()
for python_exec in python_execs:
python_implementation = subprocess.check_output(
[python_exec, "-c", "import platform; print(platform.python_implementation())"]).strip()
[python_exec, "-c", "import platform; print(platform.python_implementation())"],
universal_newlines=True).strip()
LOGGER.debug("%s python_implementation is %s", python_exec, python_implementation)
LOGGER.debug("%s version is: %s", python_exec, subprocess.check_output(
[python_exec, "--version"], stderr=subprocess.STDOUT).strip())
[python_exec, "--version"], stderr=subprocess.STDOUT, universal_newlines=True).strip())
for module in modules_to_test:
if python_implementation not in module.blacklisted_python_implementations:
for test_goal in module.python_test_goals:
Expand Down

0 comments on commit 110cd9d

Please sign in to comment.