summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-10-02 17:15:30 (GMT)
committerGitHub <noreply@github.com>2023-10-02 17:15:30 (GMT)
commit46e69576a96e200ed8e6c94c43864b3dc17f30a6 (patch)
treead8731e45b1ba3dc479aa35667429270fb85fd1c
parent8296b53027b15e688f028f4d7c44f3d76d283416 (diff)
downloadcpython-46e69576a96e200ed8e6c94c43864b3dc17f30a6.zip
cpython-46e69576a96e200ed8e6c94c43864b3dc17f30a6.tar.gz
cpython-46e69576a96e200ed8e6c94c43864b3dc17f30a6.tar.bz2
[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 732ad44cec971be5255b1accbac6555d3615c2bf) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
-rw-r--r--Lib/test/test_typing.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_typing.py b/Lib/test/test_typing.py
index eb76177..83f2540 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