# HG changeset patch # User Gregory Szorc # Date 2015-02-07 00:15:02 # Node ID 4d9c738d942f1dd2c5833c2c3dec377f0c733015 # Parent ff5caa8dfd993680d9602ca6ebb14da9de10d5f4 run-tests: avoid printing extra newlines from install log If an installation error occurs, we print the install log. Before, output had extra newlines because we were using "print" on data that was already newline terminated. diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -1870,7 +1870,7 @@ class TestRunner(object): else: f = open(installerrs, 'rb') for line in f: - print line + sys.stdout.write(line) f.close() sys.exit(1) os.chdir(self._testdir)