subunit: Update to latest upstream snapshot.
[ira/wip.git] / lib / subunit / python / subunit / tests / sample-script.py
index 0ee019ae4aef40411f8903d47969fb0acc4555af..618e4952d7938c36dc0df5b41dd1be118155bdf7 100755 (executable)
@@ -1,5 +1,8 @@
 #!/usr/bin/env python
 import sys
+if sys.platform == "win32":
+    import msvcrt, os
+    msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY)
 if len(sys.argv) == 2:
     # subunit.tests.test_test_protocol.TestExecTestCase.test_sample_method_args 
     # uses this code path to be sure that the arguments were passed to