mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
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 ddbeb2f3e0
)
This commit is contained in:
parent
610a60c601
commit
b1e7361134
8 changed files with 41 additions and 12 deletions
|
@ -33,7 +33,7 @@ from test.support import socket_helper
|
|||
# Skip tests if _multiprocessing wasn't built.
|
||||
_multiprocessing = test.support.import_module('_multiprocessing')
|
||||
# Skip tests if sem_open implementation is broken.
|
||||
test.support.import_module('multiprocessing.synchronize')
|
||||
support.skip_if_broken_multiprocessing_synchronize()
|
||||
import threading
|
||||
|
||||
import multiprocessing.connection
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue