Skip to content

Commit 46e6957

Browse files
[3.12] pythongh-110178: Use fewer weakrefs in test_typing.py (pythonGH-110194) (python#110224)
pythongh-110178: Use fewer weakrefs in test_typing.py (pythonGH-110194) Confirmed that without the C changes from pythonGH-108517, this test still segfaults with only 10 weakrefs. (cherry picked from commit 732ad44) Co-authored-by: Jelle Zijlstra <[email protected]>
1 parent 8296b53 commit 46e6957

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_typing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ def test_many_weakrefs(self):
550550
with self.subTest(cls=cls):
551551
vals = weakref.WeakValueDictionary()
552552

553-
for x in range(100000):
553+
for x in range(10):
554554
vals[x] = cls(str(x))
555555
del vals
556556

0 commit comments

Comments
 (0)