'Check that pyfunc will fail loop-lifting if pyobject mode
is disabled inside the loop, succeed otherwise.'

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

    cres = compile_isolated(pyfunc, argtypes, flags=looplift_flags)
    self.assertTrue(cres.lifted)
    with self.assertTypingError():
        cres.entry_point(*args)
    cres = compile_isolated(pyfunc, argtypes, flags=pyobject_looplift_flags)
    self.assertTrue(cres.lifted)
    expected = pyfunc(*args)
    got = cres.entry_point(*args)
    self.assertPreciseEqual(expected, got)
