'Check that a successful L{threads.deferToThread} followed by a one
that raises an exception correctly result as a failure.'

def test_deferredFailureAfterSuccess(self):

    d = threads.deferToThread((lambda : None))
    d.addCallback((lambda ign: threads.deferToThread((lambda : (1 // 0)))))
    return self.assertFailure(d, ZeroDivisionError)
