mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
bpo-17258: Add requires_hashdigest to multiprocessing tests (GH-20412)
Skip some :mod:`multiprocessing` tests when MD5 hash digest is blocked.
Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit b022e5cffb
)
Co-authored-by: Christian Heimes <christian@python.org>
This commit is contained in:
parent
6d62dc1ea4
commit
196810a98a
3 changed files with 13 additions and 0 deletions
|
@ -5,6 +5,7 @@ support.import_module('_multiprocessing')
|
|||
# Skip tests if sem_open implementation is broken.
|
||||
support.import_module('multiprocessing.synchronize')
|
||||
|
||||
from test.support import hashlib_helper
|
||||
from test.support.script_helper import assert_python_ok
|
||||
|
||||
import contextlib
|
||||
|
@ -952,6 +953,7 @@ class ProcessPoolExecutorTest(ExecutorTest):
|
|||
self.assertIn('raise RuntimeError(123) # some comment',
|
||||
f1.getvalue())
|
||||
|
||||
@hashlib_helper.requires_hashdigest('md5')
|
||||
def test_ressources_gced_in_workers(self):
|
||||
# Ensure that argument for a job are correctly gc-ed after the job
|
||||
# is finished
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue