diff tests/run-tests.py @ 24074:4d9c738d942f

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.
author Gregory Szorc <gregory.szorc@gmail.com>
date Fri, 06 Feb 2015 16:15:02 -0800
parents d64dd1252386
children 4bf484276787
line wrap: on
line diff
--- a/tests/run-tests.py	Fri Feb 06 11:27:25 2015 -0800
+++ b/tests/run-tests.py	Fri Feb 06 16:15:02 2015 -0800
@@ -1870,7 +1870,7 @@
         else:
             f = open(installerrs, 'rb')
             for line in f:
-                print line
+                sys.stdout.write(line)
             f.close()
             sys.exit(1)
         os.chdir(self._testdir)