~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-09-24 18:53:11 UTC
  • mfrom: (2036.1.2 fail-test-keep-log)
  • Revision ID: pqm@pqm.ubuntu.com-20060924185311-aa722847c6e4c74c
(jam) don't delete logs for failed tests (and ensure this with new tests)

Show diffs side-by-side

added added

removed removed

Lines of Context:
244
244
        unittest.TestResult.addError(self, test, err)
245
245
        # We can only do this if we have one of our TestCases, not if
246
246
        # we have a doctest.
247
 
        setKeepLogFile = getattr(test, 'setKeepLogFile', None)
248
 
        if setKeepLogFile is not None:
 
247
        setKeepLogfile = getattr(test, 'setKeepLogfile', None)
 
248
        if setKeepLogfile is not None:
249
249
            setKeepLogfile()
250
250
        self.extractBenchmarkTime(test)
251
251
        if self.showAll:
265
265
        unittest.TestResult.addFailure(self, test, err)
266
266
        # We can only do this if we have one of our TestCases, not if
267
267
        # we have a doctest.
268
 
        setKeepLogFile = getattr(test, 'setKeepLogFile', None)
269
 
        if setKeepLogFile is not None:
 
268
        setKeepLogfile = getattr(test, 'setKeepLogfile', None)
 
269
        if setKeepLogfile is not None:
270
270
            setKeepLogfile()
271
271
        self.extractBenchmarkTime(test)
272
272
        if self.showAll: