コード例 #1
0
ファイル: test_transformed_gc.py プロジェクト: yuyichao/pypy
 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
コード例 #2
0
ファイル: gc_test_base.py プロジェクト: charred/pypy
 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
コード例 #3
0
ファイル: gc_test_base.py プロジェクト: charred/pypy
 def func():
     a = rgc.malloc_nonmovable(TP, 3)
     if a:
         assert not rgc.can_move(a)
         return 1
     return 0