mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
[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:
parent
e0aefbd263
commit
fabe89b078
4 changed files with 23 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue