diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-09-02 23:22:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-02 23:22:33 (GMT) |
commit | dcaacd906638edbc66cc84fa651163dc7a743070 (patch) | |
tree | 69a416280c70c78c98656ec8cdb8d48059d46a12 /Lib/test/_test_multiprocessing.py | |
parent | 7269916cd7b89b5e6f20bfe83ebe1038bda56b4b (diff) | |
download | cpython-dcaacd906638edbc66cc84fa651163dc7a743070.zip cpython-dcaacd906638edbc66cc84fa651163dc7a743070.tar.gz cpython-dcaacd906638edbc66cc84fa651163dc7a743070.tar.bz2 |
[3.12] gh-108416: Mark slow test methods with @requires_resource('cpu') (GH-108421) (#108798)
gh-108416: Mark slow test methods with @requires_resource('cpu') (GH-108421)
Only mark tests which spend significant system or user time,
by itself or in subprocesses.
(cherry picked from commit f3ba0a74cd50274acdcd592d4ce8395b92492b7c)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Lib/test/_test_multiprocessing.py')
-rw-r--r-- | Lib/test/_test_multiprocessing.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py index c1e18dd..2e65653 100644 --- a/Lib/test/_test_multiprocessing.py +++ b/Lib/test/_test_multiprocessing.py @@ -329,6 +329,7 @@ class _TestProcess(BaseTestCase): p.join() self.assertEqual(p.exitcode, 0) + @support.requires_resource('cpu') def test_args_argument(self): # bpo-45735: Using list or tuple as *args* in constructor could # achieve the same effect. @@ -4466,6 +4467,7 @@ class _TestFinalize(BaseTestCase): result = [obj for obj in iter(conn.recv, 'STOP')] self.assertEqual(result, ['a', 'b', 'd10', 'd03', 'd02', 'd01', 'e']) + @support.requires_resource('cpu') def test_thread_safety(self): # bpo-24484: _run_finalizers() should be thread-safe def cb(): |