~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_plugins.py

Fix pqm failure.

* bzrlib/tests/test_plugins.py:
(TestLoadPluginAt.test_compiled_loaded): The compiled filed
depends on the -O python option.

Show diffs side-by-side

added added

removed removed

Lines of Context:
848
848
        plugin._loaded = False
849
849
        plugin.load_plugins(['b'])
850
850
        self.assertTestFooLoadedFrom('non-standard-dir')
851
 
        self.assertEqual('non-standard-dir/__init__.pyc',
 
851
        if __debug__:
 
852
            suffix = 'pyc'
 
853
        else:
 
854
            suffix = 'pyo'
 
855
        self.assertEqual('non-standard-dir/__init__.%s' % suffix,
852
856
                         bzrlib.plugins.test_foo.__file__)
853
857
 
854
858
    def test_submodule_loading(self):