/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 bzrlib/tests/test_plugins.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-12-22 18:07:19 UTC
  • mfrom: (2204.3.4 selftest.fixes)
  • Revision ID: pqm@pqm.ubuntu.com-20061222180719-31fc1e7cbaf32a4b
(bialix) several small fixes to selftest

Show diffs side-by-side

added added

removed removed

Lines of Context:
190
190
            help = self.split_help_commands()['myplug']
191
191
            self.assertContainsRe(help, '\[myplug\]')
192
192
        finally:
193
 
            # remove the plugin 'plugin'
194
 
            if getattr(bzrlib.plugins, 'plugin', None):
195
 
                del bzrlib.plugins.plugin
 
193
            # unregister command
 
194
            if bzrlib.commands.plugin_cmds.get('myplug', None):
 
195
                del bzrlib.commands.plugin_cmds['myplug']
 
196
            # remove the plugin 'myplug'
 
197
            if getattr(bzrlib.plugins, 'myplug', None):
 
198
                delattr(bzrlib.plugins, 'myplug')