/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: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-11-16 18:59:44 UTC
  • mfrom: (7143.15.15 more-cleanups)
  • Revision ID: breezy.the.bot@gmail.com-20181116185944-biefv1sub37qfybm
Sprinkle some PEP8iness.

Merged from https://code.launchpad.net/~jelmer/brz/more-cleanups/+merge/358611

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')