aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_asyncio/test_events.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-06-18 14:53:19 +0200
committerGitHub <noreply@github.com>2020-06-18 14:53:19 +0200
commitddbeb2f3e02a510c5784ffd74c5e09e8c70b5881 (patch)
tree5d992ac64b1be1b2329c398fc82323b2e433a344 /Lib/test/test_asyncio/test_events.py
parent2c2a4f3d8545784c6e4ca8128bfc706916080712 (diff)
downloadcpython-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.py4
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()