def test_ambiguousFailureFromGenerator(self):
    '\n        When a generator reraises a different exception,\n        L{Failure._findFailure} above the generator should find the reraised\n        exception rather than original one.\n        '

    def generator():
        try:
            (yield)
        except:
            [][1]
    g = generator()
    next(g)
    f = getDivisionFailure()
    try:
        self._throwIntoGenerator(f, g)
    except:
        self.assertIsInstance(failure.Failure().value, IndexError)
When a generator reraises a different exception,
L{Failure._findFailure} above the generator should find the reraised
exception rather than original one.
def test_ambiguousFailureFromGenerator(self):
    '\n        When a generator reraises a different exception,\n        L{Failure._findFailure} above the generator should find the reraised\n        exception rather than original one.\n        '

    def generator():
        try:
            (yield)
        except:
            [][1]
    g = generator()
    next(g)
    f = getDivisionFailure()
    try:
        self._throwIntoGenerator(f, g)
    except:
        self.assertIsInstance(failure.Failure().value, IndexError)