~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_selftest.py

  • Committer: Martin Pool
  • Date: 2007-06-27 01:43:03 UTC
  • mfrom: (2554 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2555.
  • Revision ID: mbp@sourcefrog.net-20070627014303-z4ichnqm91hhm4ww
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
681
681
 
682
682
    def test_lsprofiling(self):
683
683
        """Verbose test result prints lsprof statistics from test cases."""
684
 
        self.requireFeature(test_lsprof.LSProf())
 
684
        self.requireFeature(test_lsprof.LSProfFeature)
685
685
        result_stream = StringIO()
686
686
        result = bzrlib.tests.VerboseTestResult(
687
687
            unittest._WritelnDecorator(result_stream),
1193
1193
        
1194
1194
        Each self.time() call is individually and separately profiled.
1195
1195
        """
1196
 
        self.requireFeature(test_lsprof.LSProf())
 
1196
        self.requireFeature(test_lsprof.LSProfFeature)
1197
1197
        # overrides the class member with an instance member so no cleanup 
1198
1198
        # needed.
1199
1199
        self._gather_lsprof_in_benchmarks = True