Rev 5275: Some more cleanups spotted on windows. in file:///home/vila/src/bzr/experimental/leaking-tests/
Vincent Ladeuil
v.ladeuil+lp at free.fr
Fri Jun 18 16:47:07 BST 2010
At file:///home/vila/src/bzr/experimental/leaking-tests/
------------------------------------------------------------
revno: 5275
revision-id: v.ladeuil+lp at free.fr-20100618154706-0gf5f3uaj2x3czlh
parent: v.ladeuil+lp at free.fr-20100618153820-0voefijn2ewr7lbb
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: catch-them-all
timestamp: Fri 2010-06-18 17:47:06 +0200
message:
Some more cleanups spotted on windows.
-------------- next part --------------
=== modified file 'bzrlib/tests/test_http.py'
--- a/bzrlib/tests/test_http.py 2010-06-15 10:23:11 +0000
+++ b/bzrlib/tests/test_http.py 2010-06-18 15:47:06 +0000
@@ -1756,6 +1756,7 @@
branch = self.make_branch('relpath')
url = self.http_server.get_url() + 'relpath'
bd = bzrdir.BzrDir.open(url)
+ self.addCleanup(bd.transport.disconnect)
self.assertIsInstance(bd, _mod_remote.RemoteBzrDir)
def test_bulk_data(self):
@@ -2145,6 +2146,7 @@
def redirected(t, exception, redirection_notice):
self.redirections += 1
redirected_t = t._redirected_to(exception.source, exception.target)
+ self.addCleanup(redirected_t.disconnect)
return redirected_t
stdout = tests.StringIOWrapper()
@@ -2172,7 +2174,7 @@
self.new_server.port)
self.old_server.redirections = [
('(.*)', r'%s/1\1' % (new_prefix), 301),]
- self.assertEqual('redirected once',t._perform(req).read())
+ self.assertEqual('redirected once', t._perform(req).read())
# stdin should be empty
self.assertEqual('', ui.ui_factory.stdin.readline())
# stdout should be empty, stderr will contains the prompts
More information about the bazaar-commits
mailing list