Skip to content

Commit 46e6957

Browse files
[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 732ad44) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
1 parent 8296b53 commit 46e6957

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_typing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ def test_many_weakrefs(self):
550550
with self.subTest(cls=cls):
551551
vals = weakref.WeakValueDictionary()
552552

553-
for x in range(100000):
553+
for x in range(10):
554554
vals[x] = cls(str(x))
555555
del vals
556556

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy