@@ -510,10 +510,10 @@ def assert_is_freed(id): pass
510
510
assert_is_alive (ID_OBJ14 )
511
511
assert_is_strong (htid_l2 )
512
512
assert_is_strong (htid_l3 )
513
- assert_is_weak (htid_l )
514
- assert_is_weak (htid_l1 )
515
- assert_is_weak (htid_l4 )
516
- assert_is_weak (htid_d0 )
513
+ assert_is_strong (htid_l )
514
+ assert_is_strong (htid_l1 )
515
+ assert_is_strong (htid_l4 )
516
+ assert_is_strong (htid_d0 )
517
517
518
518
rescued_obj4 = l1 [0 ]
519
519
del l1
@@ -561,8 +561,8 @@ def assert_is_freed(id): pass
561
561
assert_is_freed (ID_OBJ5 )
562
562
assert_is_freed (ID_OBJ12 )
563
563
assert_is_freed (ID_OBJ13 )
564
- assert_is_weak (htid_l2 )
565
- assert_is_weak (htid_l3 )
564
+ assert_is_strong (htid_l2 )
565
+ assert_is_strong (htid_l3 )
566
566
567
567
568
568
@skipIf (GRAALPY and not GRAALPY_NATIVE , "Python GC only used in native mode" )
@@ -662,8 +662,8 @@ def assert_is_freed(id): pass
662
662
self ._trigger_gc ()
663
663
assert_is_freed (0 )
664
664
assert_is_freed (1 )
665
- assert_is_weak (htid_l0 )
666
- assert_is_weak (htid_l1 )
665
+ assert_is_strong (htid_l0 )
666
+ assert_is_strong (htid_l1 )
667
667
668
668
def test_module_globals (self ):
669
669
self ._trigger_gc ()
@@ -787,7 +787,7 @@ def test_module_globals(self):
787
787
PyObject *list_c = PyTuple_GET_ITEM(__pyx_args, 0);
788
788
Py_INCREF(list_c);
789
789
Py_DECREF(((struct struct_GC_Test_C *)self)->_test_list_c);
790
- printf("list_c: %p\\ n", list_c);
790
+ // printf("list_c: %p\\ n", list_c);
791
791
((struct struct_GC_Test_C *)self)->_test_list_c = list_c;
792
792
return 0;
793
793
}
0 commit comments