~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/HttpServer.py

  • Committer: v.ladeuil+lp at free
  • Date: 2006-10-13 10:50:33 UTC
  • mfrom: (2077 +trunk)
  • mto: (2145.1.1 keepalive)
  • mto: This revision was merged to the branch mainline in revision 2146.
  • Revision ID: v.ladeuil+lp@free.fr-20061013105033-7e091ff8dcc0ed0c
Merge bzr.dev. Including http modifications by "smart" related code

Show diffs side-by-side

added added

removed removed

Lines of Context:
237
237
        Server.__init__(self)
238
238
        self.request_handler = request_handler
239
239
 
 
240
    def _get_httpd(self):
 
241
        return TestingHTTPServer(('localhost', 0),
 
242
                                  self.request_handler,
 
243
                                  self)
 
244
 
240
245
    def _http_start(self):
241
246
        httpd = None
242
 
        httpd = TestingHTTPServer(('localhost', 0),
243
 
                                  self.request_handler,
244
 
                                  self)
 
247
        httpd = self._get_httpd()
245
248
        host, port = httpd.socket.getsockname()
246
249
        self._http_base_url = '%s://localhost:%s/' % (self._url_protocol, port)
247
250
        self._http_starting.release()