diff options
author | Martin <gzlist@googlemail.com> | 2011-04-27 02:25:24 +0100 |
---|---|---|
committer | Martin <gzlist@googlemail.com> | 2011-04-27 02:25:24 +0100 |
commit | 5a28b540845585f07ec1f10b96305c77f63104dd (patch) | |
tree | d85962660bbb286383d4e91431cab2ddfab07242 /python/subunit/tests/sample-script.py | |
parent | 4b6abb5335d793f842abaab3121276c7737481a0 (diff) | |
download | subunit-git-5a28b540845585f07ec1f10b96305c77f63104dd.tar.gz |
Hack ExecTestCase and its tests to sort-of be portable fixing the remaing spew
Diffstat (limited to 'python/subunit/tests/sample-script.py')
-rwxr-xr-x | python/subunit/tests/sample-script.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/python/subunit/tests/sample-script.py b/python/subunit/tests/sample-script.py index 0ee019a..618e495 100755 --- a/python/subunit/tests/sample-script.py +++ b/python/subunit/tests/sample-script.py @@ -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 |