def func(): #try: a = rgc.malloc_nonmovable(TP, 3, zero=True) rgc.collect() if a: assert not rgc.can_move(a) return 1 return 0
def func(): try: a = rgc.malloc_nonmovable(TP) rgc.collect() if a: assert not rgc.can_move(a) return 1 return 0 except Exception: return 2
def func(): a = rgc.malloc_nonmovable(TP, 3) if a: assert not rgc.can_move(a) return 1 return 0