~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Carl Friedrich Bolz
  • Date: 2006-07-05 11:38:54 UTC
  • mto: This revision was merged to the branch mainline in revision 1928.
  • Revision ID: cfbolz@gmx.de-20060705113854-03d5196875cbe3c2
(lifeless, cfbolz, hpk): Add a benchmark output parameter to TextTestRunner.

Show diffs side-by-side

added added

removed removed

Lines of Context:
290
290
                 descriptions=0,
291
291
                 verbosity=1,
292
292
                 keep_output=False,
293
 
                 pb=None):
 
293
                 pb=None,
 
294
                 bench_history=None):
294
295
        self.stream = unittest._WritelnDecorator(stream)
295
296
        self.descriptions = descriptions
296
297
        self.verbosity = verbosity
297
298
        self.keep_output = keep_output
298
299
        self.pb = pb
 
300
        self._bench_history = bench_history
299
301
 
300
302
    def _makeResult(self):
301
303
        result = _MyResult(self.stream,
302
304
                           self.descriptions,
303
305
                           self.verbosity,
304
 
                           pb=self.pb)
 
306
                           pb=self.pb,
 
307
                           bench_history=self._bench_history)
305
308
        result.stop_early = self.stop_on_failure
306
309
        return result
307
310