aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-06-18 14:53:19 +0200
committerGitHub <noreply@github.com>2020-06-18 14:53:19 +0200
commitddbeb2f3e02a510c5784ffd74c5e09e8c70b5881 (patch)
tree5d992ac64b1be1b2329c398fc82323b2e433a344 /Lib/test/test_concurrent_futures.py
parentbpo-41006: What's New: less => fewer modules (GH-20955) (diff)
downloadcpython-ddbeb2f3e02a510c5784ffd74c5e09e8c70b5881.tar.gz
cpython-ddbeb2f3e02a510c5784ffd74c5e09e8c70b5881.tar.bz2
cpython-ddbeb2f3e02a510c5784ffd74c5e09e8c70b5881.zip
bpo-38377: Add support.skip_if_broken_multiprocessing_synchronize() (GH-20944)
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.
Diffstat (limited to 'Lib/test/test_concurrent_futures.py')
-rw-r--r--Lib/test/test_concurrent_futures.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_concurrent_futures.py b/Lib/test/test_concurrent_futures.py
index 0ed75e6098a..7da967ea6ce 100644
--- a/Lib/test/test_concurrent_futures.py
+++ b/Lib/test/test_concurrent_futures.py
@@ -4,7 +4,7 @@ from test.support import threading_helper
# 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