/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/tests/test_lsprof.py

  • Committer: Jelmer Vernooij
  • Date: 2018-05-06 11:48:54 UTC
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: jelmer@jelmer.uk-20180506114854-h4qd9ojaqy8wxjsd
Move .mailmap to root.

Show diffs side-by-side

added added

removed removed

Lines of Context:
128
128
        # When profiler_block is 0, reentrant profile requests fail.
129
129
        self.overrideAttr(lsprof.BzrProfiler, 'profiler_block', 0)
130
130
        inner_calls = []
131
 
 
132
131
        def inner():
133
132
            profiler = lsprof.BzrProfiler()
134
133
            self.assertRaises(errors.BzrError, profiler.start)
146
145
        # to be confident regressions would be caught. Alternatively, if this
147
146
        # is flakey, a fake Lock object can be used to trace the calls made.
148
147
        calls = []
149
 
 
150
148
        def profiled():
151
149
            calls.append('profiled')
152
 
 
153
150
        def do_profile():
154
151
            lsprof.profile(profiled)
155
152
            calls.append('after_profiled')