Skip to content

Commit

Permalink
pythongh-110178: Use fewer weakrefs
Browse files Browse the repository at this point in the history
Confirmed that without the C changes from python#108517, this test still segfaults with only 10 weakrefs.
  • Loading branch information
JelleZijlstra committed Oct 1, 2023
1 parent 65c2850 commit 7b599ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/test_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7b599ab

Please sign in to comment.