mirror of
https://github.com/python/cpython.git
synced 2025-10-24 10:23:58 +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
|
|
@ -135,10 +135,12 @@ def check_parallel_module_init(self, mock_os):
|
|||
if verbose:
|
||||
print("OK.")
|
||||
|
||||
def test_parallel_module_init(self):
|
||||
@support.bigmemtest(size=50, memuse=76*2**20, dry_run=False)
|
||||
def test_parallel_module_init(self, size):
|
||||
self.check_parallel_module_init()
|
||||
|
||||
def test_parallel_meta_path(self):
|
||||
@support.bigmemtest(size=50, memuse=76*2**20, dry_run=False)
|
||||
def test_parallel_meta_path(self, size):
|
||||
finder = Finder()
|
||||
sys.meta_path.insert(0, finder)
|
||||
try:
|
||||
|
|
@ -148,7 +150,8 @@ def test_parallel_meta_path(self):
|
|||
finally:
|
||||
sys.meta_path.remove(finder)
|
||||
|
||||
def test_parallel_path_hooks(self):
|
||||
@support.bigmemtest(size=50, memuse=76*2**20, dry_run=False)
|
||||
def test_parallel_path_hooks(self, size):
|
||||
# Here the Finder instance is only used to check concurrent calls
|
||||
# to path_hook().
|
||||
finder = Finder()
|
||||
|
|
@ -242,13 +245,15 @@ def target():
|
|||
__import__(TESTFN)
|
||||
del sys.modules[TESTFN]
|
||||
|
||||
def test_concurrent_futures_circular_import(self):
|
||||
@support.bigmemtest(size=1, memuse=1.8*2**30, dry_run=False)
|
||||
def test_concurrent_futures_circular_import(self, size):
|
||||
# Regression test for bpo-43515
|
||||
fn = os.path.join(os.path.dirname(__file__),
|
||||
'partial', 'cfimport.py')
|
||||
script_helper.assert_python_ok(fn)
|
||||
|
||||
def test_multiprocessing_pool_circular_import(self):
|
||||
@support.bigmemtest(size=1, memuse=1.8*2**30, dry_run=False)
|
||||
def test_multiprocessing_pool_circular_import(self, size):
|
||||
# Regression test for bpo-41567
|
||||
fn = os.path.join(os.path.dirname(__file__),
|
||||
'partial', 'pool_in_threads.py')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue