diff options
author | Christian Heimes <christian@python.org> | 2020-06-04 12:48:17 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-04 12:48:17 (GMT) |
commit | b022e5cffbd3ff51ae361cf80f2a3b660be8b1ee (patch) | |
tree | 51ffe1871cb328287dc08b71d28f5393a9585638 /Lib/test/test_concurrent_futures.py | |
parent | 50a48dad5579d67d7cae350f6ad5ae5c33f56abb (diff) | |
download | cpython-b022e5cffbd3ff51ae361cf80f2a3b660be8b1ee.zip cpython-b022e5cffbd3ff51ae361cf80f2a3b660be8b1ee.tar.gz cpython-b022e5cffbd3ff51ae361cf80f2a3b660be8b1ee.tar.bz2 |
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>
Diffstat (limited to 'Lib/test/test_concurrent_futures.py')
-rw-r--r-- | Lib/test/test_concurrent_futures.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_concurrent_futures.py b/Lib/test/test_concurrent_futures.py index 3b74949..0ed75e6 100644 --- a/Lib/test/test_concurrent_futures.py +++ b/Lib/test/test_concurrent_futures.py @@ -6,6 +6,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 @@ -953,6 +954,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 |