diff options
author | Victor Stinner <vstinner@python.org> | 2020-06-18 16:56:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-18 16:56:43 (GMT) |
commit | e8056180a13b6755e4e3e5505b7bf03f79da29fb (patch) | |
tree | 3b7ee3611f140572e4baefb9aab46a5b0fa4653e /Lib/test/test_asyncio | |
parent | 3d974b2fc681ddd0ec722cf631008d5941da52b8 (diff) | |
download | cpython-e8056180a13b6755e4e3e5505b7bf03f79da29fb.zip cpython-e8056180a13b6755e4e3e5505b7bf03f79da29fb.tar.gz cpython-e8056180a13b6755e4e3e5505b7bf03f79da29fb.tar.bz2 |
bpo-38377: Add support.skip_if_broken_multiprocessing_synchronize() (GH-20944) (GH-20962) (GH-20966)
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)
(cherry picked from commit b1e736113484c99acb57e4acb417b91a9e58e7ff)
Diffstat (limited to 'Lib/test/test_asyncio')
-rw-r--r-- | Lib/test/test_asyncio/test_events.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py index 37f1cb7..85838f1 100644 --- a/Lib/test/test_asyncio/test_events.py +++ b/Lib/test/test_asyncio/test_events.py @@ -2644,10 +2644,10 @@ class GetEventLoopTestsMixin: if sys.platform != 'win32': def test_get_event_loop_new_process(self): - # Issue bpo-32126: The multiprocessing module used by + # bpo-32126: The multiprocessing module used by # ProcessPoolExecutor is not functional when the # multiprocessing.synchronize module cannot be imported. - support.import_module('multiprocessing.synchronize') + support.skip_if_broken_multiprocessing_synchronize() async def main(): pool = concurrent.futures.ProcessPoolExecutor() |