diff options
author | Victor Stinner <vstinner@python.org> | 2020-06-18 14:53:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-18 14:53:19 +0200 |
commit | ddbeb2f3e02a510c5784ffd74c5e09e8c70b5881 (patch) | |
tree | 5d992ac64b1be1b2329c398fc82323b2e433a344 /Lib/test/test_asyncio/test_events.py | |
parent | 2c2a4f3d8545784c6e4ca8128bfc706916080712 (diff) | |
download | cpython-ddbeb2f3e02a510c5784ffd74c5e09e8c70b5881.tar.gz 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_asyncio/test_events.py')
-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 e7324d2e481..ef9d6fc48e9 100644 --- a/Lib/test/test_asyncio/test_events.py +++ b/Lib/test/test_asyncio/test_events.py @@ -2673,10 +2673,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() |