From 732ad44cec971be5255b1accbac6555d3615c2bf Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Mon, 2 Oct 2023 08:03:53 -0700 Subject: [PATCH] gh-110178: Use fewer weakrefs in test_typing.py (#110194) Confirmed that without the C changes from #108517, this test still segfaults with only 10 weakrefs. --- Lib/test/test_typing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_typing.py b/Lib/test/test_typing.py index 9e891f113840be..9559e35e9f02c1 100644 --- a/Lib/test/test_typing.py +++ b/Lib/test/test_typing.py @@ -550,7 +550,7 @@ def test_many_weakrefs(self): with self.subTest(cls=cls): vals = weakref.WeakValueDictionary() - for x in range(100000): + for x in range(10): vals[x] = cls(str(x)) del vals