diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2023-09-05 14:56:30 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-05 14:56:30 (GMT) |
| commit | 1e0d62793a84001e92f1c80b511d3a212b435acc (patch) | |
| tree | 0735827fe13611176e9dc41cdacde06dba79be7b /Lib/test/_test_multiprocessing.py | |
| parent | f980cc19b9cafc09ef21e906871f810a1c89e62f (diff) | |
| download | cpython-1e0d62793a84001e92f1c80b511d3a212b435acc.zip cpython-1e0d62793a84001e92f1c80b511d3a212b435acc.tar.gz cpython-1e0d62793a84001e92f1c80b511d3a212b435acc.tar.bz2 | |
gh-108416: Mark slow but not CPU bound test methods with requires_resource('walltime') (GH-108480)
Diffstat (limited to 'Lib/test/_test_multiprocessing.py')
| -rw-r--r-- | Lib/test/_test_multiprocessing.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py index bcbb4c2..2636a9c 100644 --- a/Lib/test/_test_multiprocessing.py +++ b/Lib/test/_test_multiprocessing.py @@ -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 |
