def _throwIntoGenerator(self, f, g):
    try:
        f.throwExceptionIntoGenerator(g)
    except StopIteration:
        pass
    else:
        self.fail('throwExceptionIntoGenerator should have raised StopIteration')
def _throwIntoGenerator(self, f, g):
    try:
        f.throwExceptionIntoGenerator(g)
    except StopIteration:
        pass
    else:
        self.fail('throwExceptionIntoGenerator should have raised StopIteration')