mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
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.
This commit is contained in:
parent
8d92b6eff3
commit
732ad44cec
1 changed files with 1 additions and 1 deletions
|
@ -550,7 +550,7 @@ class TypeVarTests(BaseTestCase):
|
|||
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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue