From af3c6924c781e9e7ae91a1e8184997f4ec1f8f9a Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Tue, 19 Nov 2024 06:18:17 +0800 Subject: [PATCH 1/2] Increase the threshold for the GC fast cycle test. --- Lib/test/test_gc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_gc.py b/Lib/test/test_gc.py index e02ec7c65212e0..6c18ce600434e9 100644 --- a/Lib/test/test_gc.py +++ b/Lib/test/test_gc.py @@ -1172,7 +1172,7 @@ def make_ll(depth): olds.append(newhead) if len(olds) == 20: new_objects = _testinternalcapi.get_heap_size() - initial_heap_size - self.assertLess(new_objects, 25_000) + self.assertLess(new_objects, 26_000) del olds[:] if not enabled: gc.disable() From 9d5a064dc68e88113cf5cb1ee959719fc5d90bfb Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Tue, 19 Nov 2024 07:12:23 +0800 Subject: [PATCH 2/2] Increase threshold to 27k. --- Lib/test/test_gc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_gc.py b/Lib/test/test_gc.py index 6c18ce600434e9..09f1d2b9dcdc47 100644 --- a/Lib/test/test_gc.py +++ b/Lib/test/test_gc.py @@ -1172,7 +1172,7 @@ def make_ll(depth): olds.append(newhead) if len(olds) == 20: new_objects = _testinternalcapi.get_heap_size() - initial_heap_size - self.assertLess(new_objects, 26_000) + self.assertLess(new_objects, 27_000) del olds[:] if not enabled: gc.disable()