gh-108416: Mark slow but not CPU bound test methods with requires_resource('walltime') (GH-108480)

This commit is contained in:
Serhiy Storchaka 2023-09-05 17:56:30 +03:00 committed by GitHub
parent f980cc19b9
commit 1e0d62793a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 48 additions and 3 deletions

View file

@ -675,6 +675,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))
@ -4991,6 +4992,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
@ -5019,6 +5021,7 @@ class TestWait(unittest.TestCase):
sem.release()
time.sleep(period)
@support.requires_resource('walltime')
def test_wait_integer(self):
from multiprocessing.connection import wait