254
255
The file is removed as the test is torn down.
256
257
fileno, name = tempfile.mkstemp(suffix='.log', prefix='testbzr')
258
encoder, decoder, stream_reader, stream_writer = codecs.lookup('UTF-8')
258
260
bzrlib.trace.enable_test_log(self._log_file)
259
261
self._log_file_name = name
260
262
self.addCleanup(self._finishLogFile)