Skip to content

Commit 732ad44

Browse files
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.
1 parent 8d92b6e commit 732ad44

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)