diff options
author | Victor Stinner <vstinner@python.org> | 2020-06-18 12:53:19 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-18 12:53:19 (GMT) |
commit | ddbeb2f3e02a510c5784ffd74c5e09e8c70b5881 (patch) | |
tree | 5d992ac64b1be1b2329c398fc82323b2e433a344 /Lib/test/test_multiprocessing_main_handling.py | |
parent | 2c2a4f3d8545784c6e4ca8128bfc706916080712 (diff) | |
download | cpython-ddbeb2f3e02a510c5784ffd74c5e09e8c70b5881.zip cpython-ddbeb2f3e02a510c5784ffd74c5e09e8c70b5881.tar.gz cpython-ddbeb2f3e02a510c5784ffd74c5e09e8c70b5881.tar.bz2 |
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_multiprocessing_main_handling.py')
-rw-r--r-- | Lib/test/test_multiprocessing_main_handling.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_multiprocessing_main_handling.py b/Lib/test/test_multiprocessing_main_handling.py index b6abfcc..be1ff10 100644 --- a/Lib/test/test_multiprocessing_main_handling.py +++ b/Lib/test/test_multiprocessing_main_handling.py @@ -23,7 +23,7 @@ import multiprocessing AVAILABLE_START_METHODS = set(multiprocessing.get_all_start_methods()) # Issue #22332: Skip tests if sem_open implementation is broken. -support.import_module('multiprocessing.synchronize') +support.skip_if_broken_multiprocessing_synchronize() verbose = support.verbose |