'L{DeterministicThreadPool} will log any exceptions that its "thread"
workers encounter.'

def test_logErrorsInThreads(self):

    (self.pool, self.doThreadWork) = deterministicPool()
    def divideByZero():
        return (1 / 0)
    self.pool.callInThread(divideByZero)
    self.doThreadWork()
    self.assertEqual(len(self.flushLoggedErrors(ZeroDivisionError)), 1)
