Skip to content

bpo-38377: multiprocessing.SemLock requires working /dev/shm on Linux. #19073

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Lib/test/test_asyncio/test_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -2671,7 +2671,8 @@ def tearDown(self):
asyncio.get_event_loop = self.get_event_loop_saved

if sys.platform != 'win32':

@unittest.skipIf(os.environ.get('PYTHON_NO_DEV_SHM') == '1',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit-pick, you should also check sys.flags.ignore_environment here.

"Doesn't work without /dev/shm.")
def test_get_event_loop_new_process(self):
# Issue bpo-32126: The multiprocessing module used by
# ProcessPoolExecutor is not functional when the
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Add the environment variable :data:`PYTHON_NO_DEV_SHM`,
which when set to 1, makes the Python skip tests depending
on :data:`/dev/shm` interface, which are missing in building
environments of some Linux distributions. Currently skipping
:py:meth:`test_get_event_loop_new_process`.