def generator():
    try:
        (yield)
    except:
        foundFailures.append(failure.Failure._findFailure())
    else:
        self.fail('No exception sent to generator')
def generator():
    try:
        (yield)
    except:
        foundFailures.append(failure.Failure._findFailure())
    else:
        self.fail('No exception sent to generator')