~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_import_tariff.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-05-30 16:13:24 UTC
  • mfrom: (5938.1.1 explain-tariff-tests)
  • Revision ID: pqm@pqm.ubuntu.com-20110530161324-q4hj82ijys8lg6j2
(vila) Why tariff tests escape the isolation jail (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
    """Check how many modules are loaded for some representative scenarios.
57
57
 
58
58
    See the Testing Guide in the developer documentation for more explanation.
 
59
 
 
60
 
 
61
    We must respect the setup used by the selftest command regarding
 
62
    plugins. This allows the user to control which plugins are in effect while
 
63
    running these tests and respect the import policies defined here.
 
64
 
 
65
    When failures are encountered for a given plugin, they can generally be
 
66
    addressed by using lazy import or lazy hook registration.
59
67
    """
60
68
 
61
69
    def setUp(self):
65
73
                     'BZR_PLUGINS_AT', 'HOME'):
66
74
            self.preserved_env_vars[name] = os.environ.get(name)
67
75
        super(TestImportTariffs, self).setUp()
 
76
        # We don't want to pollute the user's .bzr.log so we define our own.
68
77
        self.log_path = osutils.pathjoin(self.test_home_dir, '.bzr.log')
69
78
        self.overrideEnv('BZR_LOG', self.log_path)
70
79