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

This commit is contained in:
Serhiy Storchaka 2025-05-08 15:57:30 +03:00 committed by GitHub
parent dcf93c4c93
commit 26839eae20
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 @@
import tempfile
from test import support
from test.support import threading_helper
import unittest
import io
@ -49,7 +50,8 @@ def run(self):
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