mirror of
https://github.com/python/cpython.git
synced 2025-08-09 03:19:15 +00:00
[3.12] gh-110178: Use fewer weakrefs in test_typing.py (GH-110194) (#110224)
gh-110178: Use fewer weakrefs in test_typing.py (GH-110194)
Confirmed that without the C changes from GH-108517, this test still segfaults with only 10 weakrefs.
(cherry picked from commit 732ad44cec
)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
parent
8296b53027
commit
46e69576a9
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