diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-10-02 17:15:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-02 17:15:30 (GMT) |
commit | 46e69576a96e200ed8e6c94c43864b3dc17f30a6 (patch) | |
tree | ad8731e45b1ba3dc479aa35667429270fb85fd1c | |
parent | 8296b53027b15e688f028f4d7c44f3d76d283416 (diff) | |
download | cpython-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.py | 2 |
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 |