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:
Jelle Zijlstra 2023-10-02 08:03:53 -07:00 committed by GitHub
parent 8d92b6eff3
commit 732ad44cec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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