/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: 2008-04-06 08:36:27 UTC
  • mfrom: (3232.1.3 toshio)
  • Revision ID: pqm@pqm.ubuntu.com-20080406083627-bx7vnc0sdjfd2nvs
(Toshio Kuratomi) look for plugins in arch-independent site directory

Show diffs side-by-side

added added

removed removed

Lines of Context:
447
447
            bzrlib.plugin.set_plugins_path()
448
448
            expected_path = ['first', 'second',
449
449
                os.path.dirname(bzrlib.plugins.__file__)]
450
 
            self.assertEqual(expected_path, bzrlib.plugins.__path__)
 
450
            self.assertEqual(expected_path,
 
451
                bzrlib.plugins.__path__[:len(expected_path)])
451
452
        finally:
452
453
            bzrlib.plugins.__path__ = old_path
453
454
            if old_env != None:
455
456
            else:
456
457
                del os.environ['BZR_PLUGIN_PATH']
457
458
 
 
459
 
458
460
class TestHelpIndex(tests.TestCase):
459
461
    """Tests for the PluginsHelpIndex class."""
460
462