diff options
author | Jelle Zijlstra <jelle.zijlstra@gmail.com> | 2023-10-02 15:03:53 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-02 15:03:53 (GMT) |
commit | 732ad44cec971be5255b1accbac6555d3615c2bf (patch) | |
tree | 38cb82d71140ece6b9397af1f279ead7d13451bf | |
parent | 8d92b6eff3bac45e7d4871c46c4511218b9b685a (diff) | |
download | cpython-732ad44cec971be5255b1accbac6555d3615c2bf.zip cpython-732ad44cec971be5255b1accbac6555d3615c2bf.tar.gz cpython-732ad44cec971be5255b1accbac6555d3615c2bf.tar.bz2 |
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.
-rw-r--r-- | Lib/test/test_typing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_typing.py b/Lib/test/test_typing.py index 9e891f1..9559e35 100644 --- a/Lib/test/test_typing.py +++ b/Lib/test/test_typing.py @@ -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 |