/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: 2019-03-04 00:16:27 UTC
  • mfrom: (7293 work)
  • mto: This revision was merged to the branch mainline in revision 7318.
  • Revision ID: jelmer@jelmer.uk-20190304001627-v6u7o6pf97tukhek
Merge trunk.

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
 
131
132
        def inner():
132
133
            profiler = lsprof.BzrProfiler()
133
134
            self.assertRaises(errors.BzrError, profiler.start)
145
146
        # to be confident regressions would be caught. Alternatively, if this
146
147
        # is flakey, a fake Lock object can be used to trace the calls made.
147
148
        calls = []
 
149
 
148
150
        def profiled():
149
151
            calls.append('profiled')
 
152
 
150
153
        def do_profile():
151
154
            lsprof.profile(profiled)
152
155
            calls.append('after_profiled')