/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_server.py

  • Committer: Vincent Ladeuil
  • Date: 2010-06-05 10:25:45 UTC
  • mto: (5247.4.3 sftp-leaks)
  • mto: This revision was merged to the branch mainline in revision 5396.
  • Revision ID: v.ladeuil+lp@free.fr-20100605102545-woq8deyokfl3q61z
Fix some fallouts from previous fixes, all tests passing (no more http leaks).

* bzrlib/tests/test_test_server.py:
(TestTCPServerInAThread): server_address has been replaced
by (host, port).

* bzrlib/tests/test_http.py:
(SampleSocket.__init__): Define close() too.

Show diffs side-by-side

added added

removed removed

Lines of Context:
362
362
    def handle_error(self, request, client_address):
363
363
        # Stop serving and re-raise the last exception seen
364
364
        self.serving.clear()
365
 
        self.sibling_class.handle_error(self, request, client_address)
 
365
#        self.sibling_class.handle_error(self, request, client_address)
366
366
        raise
367
367
 
368
368
    # The following methods are called by the main thread