mirror of
https://github.com/python/cpython.git
synced 2025-08-08 10:58:51 +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
|
@ -526,7 +526,8 @@ class ThreadTests(BaseTestCase):
|
|||
finally:
|
||||
sys.setswitchinterval(old_interval)
|
||||
|
||||
def test_join_from_multiple_threads(self):
|
||||
@support.bigmemtest(size=20, memuse=72*2**20, dry_run=False)
|
||||
def test_join_from_multiple_threads(self, size):
|
||||
# Thread.join() should be thread-safe
|
||||
errors = []
|
||||
|
||||
|
@ -1287,7 +1288,8 @@ class ThreadJoinOnShutdown(BaseTestCase):
|
|||
self._run_and_join(script)
|
||||
|
||||
@unittest.skipIf(sys.platform in platforms_to_skip, "due to known OS bug")
|
||||
def test_4_daemon_threads(self):
|
||||
@support.bigmemtest(size=40, memuse=70*2**20, dry_run=False)
|
||||
def test_4_daemon_threads(self, size):
|
||||
# Check that a daemon thread cannot crash the interpreter on shutdown
|
||||
# by manipulating internal structures that are being disposed of in
|
||||
# the main thread.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue