~bzr-pqm/bzr/bzr.dev

Viewing all changes in revision 5247.5.3.

  • Committer: Vincent Ladeuil
  • Date: 2010-06-07 09:44:26 UTC
  • mto: (5247.6.1 http-leaks)
  • mto: This revision was merged to the branch mainline in revision 5396.
  • Revision ID: v.ladeuil+lp@free.fr-20100607094426-fwsjn2x91965lufu
Fix exception raising only once for a given ThreadWithException.

* bzrlib/tests/test_test_server.py:
(TestTCPServerInAThread): Check that we can caught an exception
raised while serving.

* bzrlib/tests/test_server.py:
(ThreadWithException.join): Fix typo.
(TestingTCPServer._pending_exception)
(TestingThreadingTCPServer._pending_exception): Check pending
exception in involved threads.
(TestingTCPServerInAThread.pending_exception): Forward exception
check to server and its optional threads.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: