mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
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.
This commit is contained in:
parent
2c2a4f3d85
commit
ddbeb2f3e0
9 changed files with 48 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue