branch | stable |
changeset 22120 | 68a7ef4311ce |
parent 21919 | c350cff58444 |
child 22122 | a6eddeda93f3 |
--- a/tests/run-tests.py Tue Aug 12 02:40:42 2014 -0500 +++ b/tests/run-tests.py Tue Aug 12 11:02:30 2014 -0500 @@ -1820,4 +1820,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:]))