mirror of
https://github.com/python/cpython.git
synced 2025-08-27 04:05:34 +00:00
[3.11] gh-108416: Mark slow but not CPU bound test methods with requires_resource('walltime') (GH-108480) (GH-108924)
(cherry picked from commit 1e0d62793a
)
This commit is contained in:
parent
4e5fd6dc14
commit
cf19e8ea3a
18 changed files with 316 additions and 3 deletions
|
@ -674,6 +674,7 @@ class _TestProcess(BaseTestCase):
|
|||
|
||||
close_queue(q)
|
||||
|
||||
@support.requires_resource('walltime')
|
||||
def test_many_processes(self):
|
||||
if self.TYPE == 'threads':
|
||||
self.skipTest('test not appropriate for {}'.format(self.TYPE))
|
||||
|
@ -4919,6 +4920,7 @@ class TestWait(unittest.TestCase):
|
|||
def test_wait_socket_slow(self):
|
||||
self.test_wait_socket(True)
|
||||
|
||||
@support.requires_resource('walltime')
|
||||
def test_wait_timeout(self):
|
||||
from multiprocessing.connection import wait
|
||||
|
||||
|
@ -4947,6 +4949,7 @@ class TestWait(unittest.TestCase):
|
|||
sem.release()
|
||||
time.sleep(period)
|
||||
|
||||
@support.requires_resource('walltime')
|
||||
def test_wait_integer(self):
|
||||
from multiprocessing.connection import wait
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue