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