diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2025-05-08 15:57:30 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-08 15:57:30 +0300 |
commit | 26839eae2079bd797491dfdcc00eaca1dbcbf77c (patch) | |
tree | e1123a21a5695c393c662f2ecfdadf13d3149deb /Lib/test/test_threading.py | |
parent | dcf93c4c93b741e84fa75d2b0d00a156aaf07ecf (diff) | |
download | cpython-26839eae2079bd797491dfdcc00eaca1dbcbf77c.tar.gz cpython-26839eae2079bd797491dfdcc00eaca1dbcbf77c.zip |
gh-133454: Mark tests with many threads that use much memory as bigmem (GH-133456)
Diffstat (limited to 'Lib/test/test_threading.py')
-rw-r--r-- | Lib/test/test_threading.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py index 4ab38c2598b..abe63c10c0a 100644 --- a/Lib/test/test_threading.py +++ b/Lib/test/test_threading.py @@ -530,7 +530,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 = [] @@ -1431,7 +1432,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. |