~bzr-pqm/bzr/bzr.dev

Viewing all changes in revision 3111.1.4.

  • Committer: Vincent Ladeuil
  • Date: 2007-12-18 13:53:04 UTC
  • mto: (3146.3.1 179368) (3156.2.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 3158.
  • Revision ID: v.ladeuil+lp@free.fr-20071218135304-rqiekrykivoq8qdm
Select the server depending on the request handler protocol. Add tests.

* bzrlib/tests/test_http.py:
Fix some more imports.
(TestHTTPServer): Smoke test for hhtp server.

* bzrlib/tests/http_server.py:
(HttpServer._get_httpd): Create the server for the protocol
handled by the request handler.
(HttpServer._http_start): Catch exceptions that could occur during
server construction or python will hang.
(HttpServer.setUp): Report exception if any.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: