/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Robert Collins
  • Date: 2007-08-20 03:43:40 UTC
  • mto: This revision was merged to the branch mainline in revision 2732.
  • Revision ID: robertc@robertcollins.net-20070820034340-am05707e05l1nth5
Add -Devil flag to highlight the use of problematic API calls.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1202
1202
        mutter(*args)
1203
1203
 
1204
1204
    def _get_log(self, keep_log_file=False):
1205
 
        """Return as a string the log for this test. If the file is still
1206
 
        on disk and keep_log_file=False, delete the log file and store the
1207
 
        content in self._log_contents."""
 
1205
        """Get the log from bzrlib.trace calls from this test.
 
1206
 
 
1207
        :param keep_log_file: When True, if the log is still a file on disk
 
1208
            leave it as a file on disk. When False, if the log is still a file
 
1209
            on disk, the log file is deleted and the log preserved as
 
1210
            self._log_contents.
 
1211
        :return: A string containing the log.
 
1212
        """
1208
1213
        # flush the log file, to get all content
1209
1214
        import bzrlib.trace
1210
1215
        bzrlib.trace._trace_file.flush()