'L{ThreadPool.callInThread} logs exceptions raised by the callable it
is passed.'

def test_callInThreadException(self):

    class NewError(Exception, ):
        pass
    def raiseError():
        raise NewError()
    tp = threadpool.ThreadPool(0, 1)
    tp.callInThread(raiseError)
    tp.start()
    tp.stop()
    errors = self.flushLoggedErrors(NewError)
    self.assertEqual(len(errors), 1)
