Rev 5306: test_import_tariff should respect BZR_PLUGINS_AT and BZR_DISABLE_PLUGINS in file:///home/pqm/archives/thelove/bzr/%2Btrunk/
Canonical.com Patch Queue Manager
pqm at pqm.ubuntu.com
Fri Jun 18 11:40:35 BST 2010
At file:///home/pqm/archives/thelove/bzr/%2Btrunk/
------------------------------------------------------------
revno: 5306 [merge]
revision-id: pqm at pqm.ubuntu.com-20100618104031-m2fg5gtcy2o47ghh
parent: pqm at pqm.ubuntu.com-20100617173517-cldr2otzfopnb5g1
parent: v.ladeuil+lp at free.fr-20100617165426-741tbmgwi62a9zub
committer: Canonical.com Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Fri 2010-06-18 11:40:31 +0100
message:
test_import_tariff should respect BZR_PLUGINS_AT and BZR_DISABLE_PLUGINS
modified:
NEWS NEWS-20050323055033-4e00b5db738777ff
bzrlib/tests/test_import_tariff.py test_import_tariff.p-20100207155145-ff9infp7goncs7zh-1
=== modified file 'NEWS'
--- a/NEWS 2010-06-17 14:06:36 +0000
+++ b/NEWS 2010-06-18 10:40:31 +0000
@@ -137,6 +137,8 @@
Testing
*******
+* ``test_import_tariff`` now respects BZR_PLUGINS_AT and BZR_PLUGINS_DISABLE.
+ (Vincent Ladeuil, #595587)
bzr 2.2b3
#########
=== modified file 'bzrlib/tests/test_import_tariff.py'
--- a/bzrlib/tests/test_import_tariff.py 2010-06-04 03:09:35 +0000
+++ b/bzrlib/tests/test_import_tariff.py 2010-06-17 16:54:26 +0000
@@ -55,13 +55,15 @@
# explicitly do want to test against things installed there, therefore
# we pass it through.
env_changes = dict(PYTHONVERBOSE='1')
- for name in ['BZR_HOME', 'BZR_PLUGIN_PATH', 'HOME',]:
+ for name in ['BZR_HOME', 'BZR_PLUGIN_PATH',
+ 'BZR_DISABLE_PLUGINS', 'BZR_PLUGINS_AT',
+ 'HOME',]:
env_changes[name] = self._old_env.get(name)
out, err = self.run_bzr_subprocess(args,
allow_plugins=(not are_plugins_disabled()),
env_changes=env_changes)
- self.addDetail('subprocess_stderr',
+ self.addDetail('subprocess_stderr',
content.Content(content.ContentType("text", "plain"),
lambda:[err]))
@@ -71,7 +73,7 @@
bad_modules.append(module_name)
if bad_modules:
- self.fail("command %r loaded forbidden modules %r"
+ self.fail("command %r loaded forbidden modules %r"
% (args, bad_modules))
return out, err
More information about the bazaar-commits
mailing list