~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_selftest.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-09-21 16:03:07 UTC
  • mfrom: (1927.3.5 throw_log_away)
  • Revision ID: pqm@pqm.ubuntu.com-20060921160307-6081481c9a444cce
(cfbolz) Throw away disk logfile if not used

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
        """Test logs are captured when a test fails."""
63
63
        self.log('a test message')
64
64
        self._log_file.flush()
65
 
        self.assertContainsRe(self._get_log(), 'a test message\n')
 
65
        self.assertContainsRe(self._get_log(keep_log_file=True),
 
66
                              'a test message\n')
66
67
 
67
68
 
68
69
class TestTreeShape(TestCaseInTempDir):