We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc30d34 commit 8caba5dCopy full SHA for 8caba5d
Lib/test/test_gc.py
@@ -6,6 +6,7 @@
6
from test.support.os_helper import temp_dir, TESTFN, unlink
7
from test.support.script_helper import assert_python_ok, make_script
8
from test.support import threading_helper
9
+from test.support import Py_GIL_DISABLED
10
11
import gc
12
import sys
@@ -1058,6 +1059,7 @@ class Z:
1058
1059
callback.assert_not_called()
1060
gc.enable()
1061
1062
+ @unittest.skipIf(Py_GIL_DISABLED, "Free threading does not support incremental GC")
1063
def test_incremental_gc_handles_fast_cycle_creation(self):
1064
1065
class LinkedList:
@@ -1107,6 +1109,7 @@ def make_ll(depth):
1107
1109
if not enabled:
1108
1110
gc.disable()
1111
1112
+
1113
class GCCallbackTests(unittest.TestCase):
1114
def setUp(self):
1115
# Save gc state and disable it.
0 commit comments