~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

(gz) Making logging non-ascii strings more robust with new
 EncodedStreamHandler class (Martin Packman)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1939
1939
 
1940
1940
        self.log('run bzr: %r', args)
1941
1941
        # FIXME: don't call into logging here
1942
 
        handler = logging.StreamHandler(stderr)
1943
 
        handler.setLevel(logging.INFO)
 
1942
        handler = trace.EncodedStreamHandler(stderr, errors="replace",
 
1943
            level=logging.INFO)
1944
1944
        logger = logging.getLogger('')
1945
1945
        logger.addHandler(handler)
1946
1946
        old_ui_factory = ui.ui_factory