[3.13] gh-133454: Mark tests with many threads that use much memory as bigmem (GH-133456) (GH-133664)

(cherry picked from commit 26839eae20)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
Miss Islington (bot) 2025-05-08 15:20:34 +02:00 committed by GitHub
parent e0aefbd263
commit fabe89b078
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 23 additions and 12 deletions

View file

@ -15,6 +15,7 @@ provoking a 2.0 failure under Linux.
import tempfile
from test import support
from test.support import threading_helper
import unittest
import io
@ -49,7 +50,8 @@ class TempFileGreedy(threading.Thread):
class ThreadedTempFileTest(unittest.TestCase):
def test_main(self):
@support.bigmemtest(size=NUM_THREADS, memuse=60*2**20, dry_run=False)
def test_main(self, size):
threads = [TempFileGreedy() for i in range(NUM_THREADS)]
with threading_helper.start_threads(threads, startEvent.set):
pass