]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-148605: Remove irepeat() thread test from test_bytes (GH-150576) (#150661)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 1 Jun 2026 09:31:18 +0000 (11:31 +0200)
committerGitHub <noreply@github.com>
Mon, 1 Jun 2026 09:31:18 +0000 (15:01 +0530)
gh-148605: Remove irepeat() thread test from test_bytes (GH-150576)
(cherry picked from commit 350e9de7650e224fd3abe8f389976071e8fae6d2)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/test_bytes.py

index 5d4f2155a6b065fc5e93673f0d3745a07df29a99..69235d444b915e7b0097e3f32fd9925f78f84648 100644 (file)
@@ -2571,10 +2571,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
@@ -2696,9 +2692,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