diff tests/run-tests.py @ 22132:a076a196641b

merge with stable
author Matt Mackall <mpm@selenic.com>
date Tue, 12 Aug 2014 17:22:57 -0500
parents 3b5cf39ffcc4 a6eddeda93f3
children 3ddfb9b3fdc6
line wrap: on
line diff
--- a/tests/run-tests.py	Wed Jun 25 17:31:53 2014 +0100
+++ b/tests/run-tests.py	Tue Aug 12 17:22:57 2014 -0500
@@ -1790,7 +1790,7 @@
         else:
             f = open(installerrs, 'rb')
             for line in f:
-                print line,
+                print line
             f.close()
             sys.exit(1)
         os.chdir(self._testdir)
@@ -1909,4 +1909,13 @@
 
 if __name__ == '__main__':
     runner = TestRunner()
+
+    try:
+        import msvcrt
+        msvcrt.setmode(sys.stdin.fileno(), os.O_BINARY)
+        msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY)
+        msvcrt.setmode(sys.stderr.fileno(), os.O_BINARY)
+    except ImportError:
+        pass
+
     sys.exit(runner.run(sys.argv[1:]))