/brz/remove-bazaar

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

Add an event to ThreadWithException that can be shared with the calling thread.

* bzrlib/tests/test_server.py:
(ThreadWithException.__init__): Add an 'event' parameter that can
be shared with the caller.
(ThreadWithException.run): Sset the event once the exception has
been recorded so we can release the caller and provide the
exception.
(ThreadWithException.join): Properly raise the recorded exception.

* bzrlib/tests/test_http.py:
(TestHTTPServer.test_force_invalid_protocol): Just rely on
assertRaises or we don't get the traceback on error.
(TestHTTPServer.test_server_start_and_stop): Cleanup.

* bzrlib/tests/http_server.py:
(HttpServer._http_start): Simplified.
(HttpServer.start_server): Leave the ThreadWithException do its
work.
(HttpServer.stop_server): Shutdown the server only if it was
started.
Filename Latest Rev Last Changed Committer Comment Size
..
bzr icon 16.png 4634.39.10 16 years ago Ian Clatworthy split developer docs into their own website/chm fi 809 bytes Diff Download File
bzr-doc.css 4806.1.1 16 years ago Andrew Bennetts Make sphinx respect 'loweralpha' style lists (a,b, 51 bytes Diff Download File
bzr.ico 4634.39.10 16 years ago Ian Clatworthy split developer docs into their own website/chm fi 12.7 KB Diff Download File