/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: John Arbash Meinel
  • Date: 2008-10-22 19:07:07 UTC
  • mfrom: (3789 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3790.
  • Revision ID: john@arbash-meinel.com-20081022190707-qf5480pbkqp33d51
Merge bzr.dev 3789

Show diffs side-by-side

added added

removed removed

Lines of Context:
412
412
            self.assertContainsRe(help, '\[myplug\]')
413
413
        finally:
414
414
            # unregister command
415
 
            if bzrlib.commands.plugin_cmds.get('myplug', None):
416
 
                del bzrlib.commands.plugin_cmds['myplug']
 
415
            if 'myplug' in bzrlib.commands.plugin_cmds:
 
416
                bzrlib.commands.plugin_cmds.remove('myplug')
417
417
            # remove the plugin 'myplug'
418
418
            if getattr(bzrlib.plugins, 'myplug', None):
419
419
                delattr(bzrlib.plugins, 'myplug')