Rev 5353: Some more fallouts in tests. in file:///home/vila/src/bzr/bugs/525571-lock-bazaar-conf-files/
Vincent Ladeuil
v.ladeuil+lp at free.fr
Mon Jul 19 11:08:39 BST 2010
At file:///home/vila/src/bzr/bugs/525571-lock-bazaar-conf-files/
------------------------------------------------------------
revno: 5353
revision-id: v.ladeuil+lp at free.fr-20100719100839-oxg54wcacethbfxd
parent: v.ladeuil+lp at free.fr-20100719095125-z2xr8t2crgg6j3vp
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: deprecate-get-parser-file
timestamp: Mon 2010-07-19 12:08:39 +0200
message:
Some more fallouts in tests.
-------------- next part --------------
=== modified file 'bzrlib/plugins/launchpad/test_account.py'
--- a/bzrlib/plugins/launchpad/test_account.py 2009-03-23 14:59:43 +0000
+++ b/bzrlib/plugins/launchpad/test_account.py 2010-07-19 10:08:39 +0000
@@ -26,9 +26,7 @@
class LaunchpadAccountTests(TestCaseInTempDir):
def setup_config(self, text):
- my_config = config.GlobalConfig()
- config_file = StringIO(text)
- my_config._get_parser(config_file)
+ my_config = config.GlobalConfig(_content=StringIO(text))
return my_config
def test_get_lp_login_unconfigured(self):
=== modified file 'bzrlib/tests/test_smtp_connection.py'
--- a/bzrlib/tests/test_smtp_connection.py 2009-07-19 01:36:56 +0000
+++ b/bzrlib/tests/test_smtp_connection.py 2010-07-19 10:08:39 +0000
@@ -91,9 +91,7 @@
class TestSMTPConnection(tests.TestCaseInTempDir):
def get_connection(self, text, smtp_factory=None):
- my_config = config.GlobalConfig()
- config_file = StringIO(text)
- my_config._get_parser(config_file)
+ my_config = config.GlobalConfig(_content=StringIO(text))
return smtp_connection.SMTPConnection(my_config,
_smtp_factory=smtp_factory)
More information about the bazaar-commits
mailing list