Author xdegaye
Recipients brett.cannon, davin, eric.snow, giampaolo.rodola, lukasz.langa, nascheme, osvenskan, pitrou, pmpp, rhettinger, ronaldoussoren, skrah, terry.reedy, xdegaye, yselivanov
Date 2019-03-18.09:10:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
After changeset e895de3e7f3cc2f7213b87621cfe9812ea4343f0, test_all fails on platforms that lack the _posixshmem extension module (Android for example):

FAIL: test_all (test.test___all__.AllTest) (module='multiprocessing.managers')
Traceback (most recent call last):
File "/data/local/tmp/python/lib/python3.8/test/", line 34, in check_all
  exec("from %s import *" % modname, names)
AttributeError: module 'multiprocessing.managers' has no attribute 'SharedMemoryManager'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/data/local/tmp/python/lib/python3.8/test/", line 37, in check_all"__all__ failure in {}: {}: {}".format(
AssertionError: __all__ failure in multiprocessing.managers: AttributeError: module 'multiprocessing.managers' has no attribute 'SharedMemoryManager'

The following patch fixes the problem:

diff --git a/Lib/multiprocessing/ b/Lib/multiprocessing/
index 7973012b98..3fdd60fff7 100644
--- a/Lib/multiprocessing/
+++ b/Lib/multiprocessing/
@@ -8,8 +8,7 @@
# Licensed to PSF under a Contributor Agreement.

-__all__ = [ 'BaseManager', 'SyncManager', 'BaseProxy', 'Token',
-            'SharedMemoryManager' ]
+__all__ = [ 'BaseManager', 'SyncManager', 'BaseProxy', 'Token' ]

# Imports
@@ -33,6 +32,7 @@ from . import get_context
   from . import shared_memory
   HAS_SHMEM = True
+    __all__.append('SharedMemoryManager')
except ImportError:
   HAS_SHMEM = False
Date User Action Args
2019-03-18 09:10:15xdegayesetrecipients: + xdegaye, brett.cannon, nascheme, rhettinger, terry.reedy, ronaldoussoren, pitrou, osvenskan, giampaolo.rodola, skrah, pmpp, lukasz.langa, eric.snow, yselivanov, davin
2019-03-18 09:10:15xdegayesetmessageid: <>
2019-03-18 09:10:15xdegayelinkissue35813 messages
2019-03-18 09:10:15xdegayecreate