Skip to content

Commit 49d1779

Browse files
committed
Improve speed at TSAN
1 parent c50f26f commit 49d1779

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Lib/test/test_capi/test_object.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -347,10 +347,10 @@ class RefTracerTest(unittest.TestCase):
347347
@support.skip_wasi_stack_overflow()
348348
def test_destroy_traced_for_trashcan_deferred_objects(self):
349349
depth = 200_000
350-
chain = None
351-
for _ in range(depth):
352-
chain = [chain]
353350
with support.disable_gc():
351+
chain = None
352+
for _ in range(depth):
353+
chain = [chain]
354354
_testcapi.start_counting_list_destroys()
355355
del chain
356356
destroys = _testcapi.stop_counting_list_destroys()

0 commit comments

Comments
 (0)