'Check that pyfunc (a generator function) can\'t loop-lift.'

def check_no_lift_generator(self, pyfunc, argtypes, args):

    cres = compile_isolated(pyfunc, argtypes, flags=looplift_flags)
    self.assertFalse(cres.lifted)
    expected = list(pyfunc(*args))
    got = list(cres.entry_point(*args))
    self.assertPreciseEqual(expected, got)
