~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-23 23:21:12 UTC
  • mfrom: (1953 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1955.
  • Revision ID: john@arbash-meinel.com-20060823232112-f755378d583374a8
[merge] bzr.dev 1953

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)