1
from pypy.translator.stackless.test.test_transform import \
2
llinterp_stackless_function, run_stackless_function
3
from pypy.rlib import rstack
7
import py; py.test.skip("to be rewritten with gc_x_clone")
10
parent = rstack.yield_current_frame_to_caller()
13
# switch back for the fork
14
parent = parent.switch()
15
lst.append(6) # we are here twice!
24
c2 = c1.clone() # clone() here
37
data = llinterp_stackless_function(f)
38
assert data == 123456768
40
res = run_stackless_function(f)
41
assert res == 123456768