Skip to content

Commit 8caba5d

Browse files
committed
Turn off test for free-threading
1 parent bc30d34 commit 8caba5d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Lib/test/test_gc.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from test.support.os_helper import temp_dir, TESTFN, unlink
77
from test.support.script_helper import assert_python_ok, make_script
88
from test.support import threading_helper
9+
from test.support import Py_GIL_DISABLED
910

1011
import gc
1112
import sys
@@ -1058,6 +1059,7 @@ class Z:
10581059
callback.assert_not_called()
10591060
gc.enable()
10601061

1062+
@unittest.skipIf(Py_GIL_DISABLED, "Free threading does not support incremental GC")
10611063
def test_incremental_gc_handles_fast_cycle_creation(self):
10621064

10631065
class LinkedList:
@@ -1107,6 +1109,7 @@ def make_ll(depth):
11071109
if not enabled:
11081110
gc.disable()
11091111

1112+
11101113
class GCCallbackTests(unittest.TestCase):
11111114
def setUp(self):
11121115
# Save gc state and disable it.

0 commit comments

Comments
 (0)