~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_bugtracker.py

  • Committer: Robert Collins
  • Date: 2010-04-08 04:34:03 UTC
  • mfrom: (5138 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5139.
  • Revision ID: robertc@robertcollins.net-20100408043403-56z0d07vdqrx7f3t
Update bugfix for 528114 to trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
        self.tracker_type = TestGetBugURL.TransientTracker
42
42
        self.tracker_type.log = []
43
43
        bugtracker.tracker_registry.register('transient', self.tracker_type)
44
 
        self.addCleanup(lambda:
45
 
                        bugtracker.tracker_registry.remove('transient'))
 
44
        self.addCleanup(bugtracker.tracker_registry.remove, 'transient')
46
45
 
47
46
    def test_get_bug_url_for_transient_tracker(self):
48
47
        branch = self.make_branch('some_branch')
194
193
        """If asked for a valid tag, return a tracker instance that can map bug
195
194
        IDs to <base_url>/<bug_area> + <bug_id>."""
196
195
        bugtracker.tracker_registry.register('some', self.tracker)
197
 
        self.addCleanup(lambda: bugtracker.tracker_registry.remove('some'))
 
196
        self.addCleanup(bugtracker.tracker_registry.remove, 'some')
198
197
 
199
198
        branch = self.make_branch('some_branch')
200
199
        config = branch.get_config()