~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-04-20 10:30:30 UTC
  • mfrom: (5163.1.2 selftest-parallel-win32)
  • Revision ID: pqm@pqm.ubuntu.com-20100420103030-1jqyxyc47v1btkp2
(lifeless) Set unbuffered mode in --parallel so that line endings are not mangled on win32. (Gordon Tyler)

Show diffs side-by-side

added added

removed removed

Lines of Context:
3276
3276
        bzr_path = [bzr_path]
3277
3277
        if sys.platform == "win32":
3278
3278
            # if we're on windows, we can't execute the bzr script directly
3279
 
            bzr_path = [sys.executable] + bzr_path
 
3279
            # and we have to enable unbuffered binary stdout/stderr so that
 
3280
            # automatic CRLF conversion doesn't corrupt the subunit streams
 
3281
            bzr_path = [sys.executable, '-u'] + bzr_path
3280
3282
        fd, test_list_file_name = tempfile.mkstemp()
3281
3283
        test_list_file = os.fdopen(fd, 'wb', 1)
3282
3284
        for test in process_tests: