]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-148605: Remove irepeat() thread test from test_bytes (#150576)
authorVictor Stinner <vstinner@python.org>
Sun, 31 May 2026 09:27:10 +0000 (11:27 +0200)
committerGitHub <noreply@github.com>
Sun, 31 May 2026 09:27:10 +0000 (14:57 +0530)
Lib/test/test_bytes.py

index b1cdbe04765ed0d332f115d31138f0141b8a8506..e0e8dd4eccfb1b27332dedaaf9efd9de6901cd51 100644 (file)
@@ -2700,10 +2700,6 @@ class FreeThreadingTest(unittest.TestCase):
             b.wait()
             a += c
 
-        def irepeat(b, a):  # MODIFIES!
-            b.wait()
-            a *= 2
-
         def subscript(b, a):
             b.wait()
             try: assert a[0] != 0xdd
@@ -2837,9 +2833,10 @@ class FreeThreadingTest(unittest.TestCase):
 
         check([clear] + [repeat] * 10)
         check([clear] + [iconcat] * 10)
-        check([clear] + [irepeat] * 10)
         check([clear] + [ass_subscript] * 10)
         check([clear] + [repr_] * 10)
+        # gh-148605: Do not test "a *= 2" since it allocates up to 4 GiB using
+        # 10 threads
 
         # value errors