'Check that pyfunc (a generator function) can loop-lift even in
nopython mode.'

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

    cres = self.try_lift(pyfunc, argtypes)
    expected = list(pyfunc(*args))
    got = list(cres.entry_point(*args))
    self.assert_lifted_native(cres)
    self.assertPreciseEqual(expected, got)
