There was an error while loading. Please reload this page.
1 parent c50f26f commit 49d1779Copy full SHA for 49d1779
1 file changed
Lib/test/test_capi/test_object.py
@@ -347,10 +347,10 @@ class RefTracerTest(unittest.TestCase):
347
@support.skip_wasi_stack_overflow()
348
def test_destroy_traced_for_trashcan_deferred_objects(self):
349
depth = 200_000
350
- chain = None
351
- for _ in range(depth):
352
- chain = [chain]
353
with support.disable_gc():
+ chain = None
+ for _ in range(depth):
+ chain = [chain]
354
_testcapi.start_counting_list_destroys()
355
del chain
356
destroys = _testcapi.stop_counting_list_destroys()
0 commit comments