~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: John Arbash Meinel
  • Date: 2006-08-22 21:39:33 UTC
  • mto: This revision was merged to the branch mainline in revision 1953.
  • Revision ID: john@arbash-meinel.com-20060822213933-f993a9d069823426
Change mutter() so that it doesn't try so hard to write out perfect utf8, instead, rather than using a utf8 file, it changes unicode to utf8 manually

Show diffs side-by-side

added added

removed removed

Lines of Context:
604
604
        The file is removed as the test is torn down.
605
605
        """
606
606
        fileno, name = tempfile.mkstemp(suffix='.log', prefix='testbzr')
607
 
        encoder, decoder, stream_reader, stream_writer = codecs.lookup('UTF-8')
608
 
        self._log_file = stream_writer(os.fdopen(fileno, 'w+'))
 
607
        self._log_file = os.fdopen(fileno, 'w+')
609
608
        self._log_nonce = bzrlib.trace.enable_test_log(self._log_file)
610
609
        self._log_file_name = name
611
610
        self.addCleanup(self._finishLogFile)