File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 6
6
from test .support .os_helper import temp_dir , TESTFN , unlink
7
7
from test .support .script_helper import assert_python_ok , make_script
8
8
from test .support import threading_helper
9
+ from test .support import Py_GIL_DISABLED
9
10
10
11
import gc
11
12
import sys
@@ -1058,6 +1059,7 @@ class Z:
1058
1059
callback .assert_not_called ()
1059
1060
gc .enable ()
1060
1061
1062
+ @unittest .skipIf (Py_GIL_DISABLED , "Free threading does not support incremental GC" )
1061
1063
def test_incremental_gc_handles_fast_cycle_creation (self ):
1062
1064
1063
1065
class LinkedList :
@@ -1107,6 +1109,7 @@ def make_ll(depth):
1107
1109
if not enabled :
1108
1110
gc .disable ()
1109
1111
1112
+
1110
1113
class GCCallbackTests (unittest .TestCase ):
1111
1114
def setUp (self ):
1112
1115
# Save gc state and disable it.
You can’t perform that action at this time.
0 commit comments