~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_import_tariff.py

Merge cleanup into first-try

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
        # explicitly do want to test against things installed there, therefore
56
56
        # we pass it through.
57
57
        env_changes = dict(PYTHONVERBOSE='1')
58
 
        for name in ['BZR_HOME', 'BZR_PLUGIN_PATH', 'HOME',]:
 
58
        for name in ['BZR_HOME', 'BZR_PLUGIN_PATH',
 
59
                     'BZR_DISABLE_PLUGINS', 'BZR_PLUGINS_AT',
 
60
                     'HOME',]:
59
61
            env_changes[name] = self._old_env.get(name)
60
62
        out, err = self.run_bzr_subprocess(args,
61
63
            allow_plugins=(not are_plugins_disabled()),
62
64
            env_changes=env_changes)
63
65
 
64
 
        self.addDetail('subprocess_stderr', 
 
66
        self.addDetail('subprocess_stderr',
65
67
            content.Content(content.ContentType("text", "plain"),
66
68
                lambda:[err]))
67
69
 
71
73
                bad_modules.append(module_name)
72
74
 
73
75
        if bad_modules:
74
 
            self.fail("command %r loaded forbidden modules %r" 
 
76
            self.fail("command %r loaded forbidden modules %r"
75
77
                % (args, bad_modules))
76
78
        return out, err
77
79