~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_lsprof.py

  • Committer: Aaron Bentley
  • Date: 2007-06-18 20:04:16 UTC
  • mfrom: (2533 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2534.
  • Revision ID: abentley@panoramicfeedback.com-20070618200416-9b164rn1a60uh82p
Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
from bzrlib import tests
25
25
 
26
26
 
27
 
class LSProf(tests.Feature):
 
27
class _LSProfFeature(tests.Feature):
28
28
 
29
29
    def available(self):
30
30
        try:
35
35
            return True
36
36
 
37
37
 
 
38
LSProfFeature = _LSProfFeature()
 
39
 
 
40
 
38
41
_TXT_HEADER = "   CallCount    Recursive    Total(ms)   " + \
39
42
    "Inline(ms) module:lineno(function)\n"
40
43
 
53
56
 
54
57
class TestStatsSave(tests.TestCaseInTempDir):
55
58
 
 
59
    _test_needs_features = [LSProfFeature]
 
60
 
56
61
    def setUp(self):
57
 
        self.requireFeature(LSProf())
58
62
        super(tests.TestCaseInTempDir, self).setUp()
59
63
        self.stats = _collect_stats()
60
64