mirror of
https://github.com/python/cpython.git
synced 2025-10-25 18:54:53 +00:00
gh-133454: Mark tests with many threads that use much memory as bigmem (GH-133456)
This commit is contained in:
parent
dcf93c4c93
commit
26839eae20
4 changed files with 23 additions and 12 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue