diff options
author | Victor Stinner <vstinner@python.org> | 2020-06-18 15:19:59 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-18 15:19:59 (GMT) |
commit | b1e736113484c99acb57e4acb417b91a9e58e7ff (patch) | |
tree | 8b9e94c67b0dc316bf563dfb710bfe676ac171d4 /Lib/test/test_concurrent_futures.py | |
parent | 610a60c601fb4380eee30e15be1cd4dcbdaeec4c (diff) | |
download | cpython-b1e736113484c99acb57e4acb417b91a9e58e7ff.zip cpython-b1e736113484c99acb57e4acb417b91a9e58e7ff.tar.gz cpython-b1e736113484c99acb57e4acb417b91a9e58e7ff.tar.bz2 |
bpo-38377: Add support.skip_if_broken_multiprocessing_synchronize() (GH-20944) (GH-20962)
On Linux, skip tests using multiprocessing if the current user cannot
create a file in /dev/shm/ directory. Add the
skip_if_broken_multiprocessing_synchronize() function to the
test.support module.
(cherry picked from commit ddbeb2f3e02a510c5784ffd74c5e09e8c70b5881)
Diffstat (limited to 'Lib/test/test_concurrent_futures.py')
-rw-r--r-- | Lib/test/test_concurrent_futures.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_concurrent_futures.py b/Lib/test/test_concurrent_futures.py index bb2bc75..4fe4bf7 100644 --- a/Lib/test/test_concurrent_futures.py +++ b/Lib/test/test_concurrent_futures.py @@ -3,7 +3,7 @@ from test import support # Skip tests if _multiprocessing wasn't built. support.import_module('_multiprocessing') # Skip tests if sem_open implementation is broken. -support.import_module('multiprocessing.synchronize') +support.skip_if_broken_multiprocessing_synchronize() from test.support import hashlib_helper from test.support.script_helper import assert_python_ok |